添加项目文件。
This commit is contained in:
30
Szmedi.AIScriptRunner/GlobalVariables.cs
Normal file
30
Szmedi.AIScriptRunner/GlobalVariables.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
|
||||
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; }
|
||||
/// <summary>
|
||||
/// 是否授权
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user