Sicherung
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
using Hardcodet.Wpf.TaskbarNotification;
|
||||
using NHotkey;
|
||||
using NHotkey.Wpf;
|
||||
using System.Collections;
|
||||
using System.Windows;
|
||||
using System.Windows.Input;
|
||||
using FSI.Lib.Helpers;
|
||||
using FSI.Lib.CompareNetObjects;
|
||||
using FSI.Lib.Guis.SetSizePosExWindow;
|
||||
|
||||
namespace FSI.BT.Tools
|
||||
{
|
||||
@@ -31,13 +35,24 @@ namespace FSI.BT.Tools
|
||||
|
||||
Global.FrmRadialMenu = new FrmRadialMenu();
|
||||
|
||||
Global.WinCC = new Lib.Guis.SieTiaWinCCMsgMgt.WinCC(
|
||||
Global.WinCC = new Lib.Guis.SieTiaWinCCMsgMgt.ViewModel.ViewModelWinCC(
|
||||
Global.Settings.SieTiaWinCCMsgMgtAutostart,
|
||||
Global.Settings.SieTiaWinCCMsgMgtUpdateIntervall,
|
||||
Global.Settings.SieTiaWinCCMsgMgtWindowsName,
|
||||
Global.Settings.SieTiaWinCCMsgMgtClassName,
|
||||
Global.Settings.SieTiaWinCCMsgMgtBtnName
|
||||
);
|
||||
);
|
||||
|
||||
Global.Iba = new Lib.Guis.IbaDirSync.ViewModel.ViewModelIba(
|
||||
Global.Settings.IbaRecordDestinationath,
|
||||
Global.Settings.IbaRecordSourcePath,
|
||||
Global.Settings.IbaAutoSync
|
||||
);
|
||||
|
||||
Global.WindowMgt = new Lib.Guis.SetSizePosExWindow.ViewModel.ViewModelWindow();
|
||||
Global.WindowMgt.AutoStart = Global.Settings.WindowMgtAutostart;
|
||||
Global.WindowMgt.UpdateIntervall = Global.Settings.WindowMgtUpdateInterval;
|
||||
|
||||
}
|
||||
|
||||
private void ShowRadialMenu(object sender, HotkeyEventArgs e)
|
||||
@@ -60,7 +75,22 @@ namespace FSI.BT.Tools
|
||||
|
||||
private void Application_Exit(object sender, ExitEventArgs e)
|
||||
{
|
||||
Global.Settings.Save();
|
||||
AppSettings tmpSetting = new AppSettings(Global.Settings.FileName);
|
||||
tmpSetting.Load();
|
||||
|
||||
CompareLogic compareLogic = new CompareLogic();
|
||||
ComparisonResult result = compareLogic.Compare(Global.Settings, tmpSetting);
|
||||
if (!result.AreEqual)
|
||||
{
|
||||
Global.Settings.Save();
|
||||
}
|
||||
|
||||
if (Global.Iba.RoboCopy != null)
|
||||
{
|
||||
Global.Iba.RoboCopy.Stop();
|
||||
Global.Iba.RoboCopy.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user