Sicherung
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using FSI.Lib.Guis.SieTiaWinCCMsgMgt;
|
||||
using FSI.Lib.WinSettings;
|
||||
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
|
||||
@@ -8,10 +9,45 @@ namespace FSI.BT.Tools
|
||||
{
|
||||
public static FrmRadialMenu FrmRadialMenu { get; set; }
|
||||
public static TaskbarIcon TaskbarIcon { get; set; }
|
||||
public static WinCC WinCC { 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user