using System; using System.Reflection; using System.Windows; using Autodesk.Revit.UI; using Autodesk.Windows; using Szmedi.AIScriptRunner.Services; namespace Szmedi.AIScriptRunner { public class GlobalVariables { public static IntPtr RevitWindowPtr => ComponentManager.ApplicationWindow; public static string AddInPath = Assembly.GetExecutingAssembly().Location; public static string DirAssembly = Path.GetDirectoryName(AddInPath); public static UIApplication? UIApplication { get; set; } /// /// 是否授权 /// public static bool IsAuthenticated { get; set; } public static Window LoginWindow { get; set; } public static AuthenticationService AuthenticationService { get; } = new AuthenticationService(); //public static bool IsLogin { get; set; } = false; } }