54 lines
2.2 KiB
C#
54 lines
2.2 KiB
C#
using FSI.Lib.Guis.IbaDirSync.ViewModel;
|
|
using FSI.Lib.Guis.SetSizePosExWindow.ViewModel;
|
|
using FSI.Lib.Guis.SieTiaWinCCMsgMgt.ViewModel;
|
|
using Hardcodet.Wpf.TaskbarNotification;
|
|
|
|
namespace FSI.BT.Tools
|
|
{
|
|
internal static class Global
|
|
{
|
|
public static FrmRadialMenu FrmRadialMenu { get; set; }
|
|
public static TaskbarIcon TaskbarIcon { get; set; }
|
|
public static ViewModelWinCC WinCC { get; set; }
|
|
public static AppSettings Settings { get; set; }
|
|
public static ViewModelIba Iba { get; set; }
|
|
public static ViewModelWindow WindowMgt { get; set; }
|
|
public static bool UserRights { get; set; }
|
|
public static bool AdminRights { get; set; }
|
|
public static bool SuperAdminRights { get; set; }
|
|
|
|
public static class Window
|
|
{
|
|
public static void Load()
|
|
{
|
|
for (int i = 0; i < Global.Settings.WindowMgtName.Length; i++)
|
|
{
|
|
WindowMgt.Windows.Add(new Lib.Guis.SetSizePosExWindow.Model.Window
|
|
{
|
|
Name = Global.Settings.WindowMgtName[i],
|
|
ClassName = Global.Settings.WindowMgtClassName[i],
|
|
Height = Global.Settings.WindowMgtHeight[i],
|
|
Width = Global.Settings.WindowMgtWight[i],
|
|
X = Global.Settings.WindowMgtX[i],
|
|
Y = Global.Settings.WindowMgtY[i],
|
|
});
|
|
}
|
|
}
|
|
|
|
public static void Save()
|
|
{
|
|
for (int i = 0; i < Global.WindowMgt.Windows.Count; i++)
|
|
{
|
|
Global.Settings.WindowMgtName[i] = Global.WindowMgt.Windows[i].Name;
|
|
Global.Settings.WindowMgtClassName[i] = Global.WindowMgt.Windows[i].ClassName;
|
|
Global.Settings.WindowMgtHeight[i] = Global.WindowMgt.Windows[i].Height;
|
|
Global.Settings.WindowMgtWight[i] = Global.WindowMgt.Windows[i].Width;
|
|
Global.Settings.WindowMgtX[i] = Global.WindowMgt.Windows[i].X;
|
|
Global.Settings.WindowMgtY[i] = Global.WindowMgt.Windows[i].Y;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|