31 lines
895 B
C#
31 lines
895 B
C#
|
|
|
|
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;
|
|
}
|
|
}
|