Sicherung
This commit is contained in:
@@ -12,7 +12,7 @@ namespace FSI.BT.Tools.Commands
|
||||
Lib.Guis.AutoPw.FrmMain frmMain = new Lib.Guis.AutoPw.FrmMain()
|
||||
{
|
||||
CloseAtLostFocus = false,
|
||||
WindowStartupLocation = WindowStartupLocation.CenterOwner,
|
||||
WindowStartupLocation = WindowStartupLocation.CenterScreen,
|
||||
};
|
||||
frmMain.ShowDialog();
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace FSI.BT.Tools.Commands
|
||||
{
|
||||
ShowPdf = false,
|
||||
CloseAtLostFocus = true,
|
||||
WindowStartupLocation = WindowStartupLocation.CenterOwner,
|
||||
WindowStartupLocation = WindowStartupLocation.CenterScreen,
|
||||
Path = Global.Settings.EplPrjPath,
|
||||
EplExes = Global.Settings.EplExe,
|
||||
};
|
||||
@@ -69,7 +69,7 @@ namespace FSI.BT.Tools.Commands
|
||||
{
|
||||
ShowPdf = true,
|
||||
CloseAtLostFocus = true,
|
||||
WindowStartupLocation = WindowStartupLocation.CenterOwner,
|
||||
WindowStartupLocation = WindowStartupLocation.CenterScreen,
|
||||
Path = Global.Settings.EplPdfPath,
|
||||
};
|
||||
frmMainEplPdf.Show();
|
||||
@@ -114,7 +114,7 @@ namespace FSI.BT.Tools.Commands
|
||||
{
|
||||
Password = GetType().Namespace.ToString(),
|
||||
CloseAtLostFocus = true,
|
||||
WindowStartupLocation = WindowStartupLocation.CenterOwner,
|
||||
WindowStartupLocation = WindowStartupLocation.CenterScreen,
|
||||
};
|
||||
frmMainDeEnCrypt.Show();
|
||||
return;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Data;
|
||||
|
||||
namespace FSI.BT.Tools.Commands
|
||||
{
|
||||
@@ -10,9 +11,33 @@ namespace FSI.BT.Tools.Commands
|
||||
public override void Execute(object parameter)
|
||||
{
|
||||
Gui.FrmProcesses frm = new Gui.FrmProcesses();
|
||||
frm.WinCC = Global.WinCC;
|
||||
frm.Iba = Global.Iba;
|
||||
Global.Window.Load();
|
||||
frm.WindowMgt = Global.WindowMgt;
|
||||
frm.Closed += Frm_Closed;
|
||||
frm.ShowDialog();
|
||||
}
|
||||
|
||||
private void Frm_Closed(object sender, System.EventArgs e)
|
||||
{
|
||||
Global.WinCC = ((Gui.FrmProcesses)sender).WinCC;
|
||||
|
||||
Global.Settings.SieTiaWinCCMsgMgtAutostart = Global.WinCC.WinCC.AutoStart;
|
||||
Global.Settings.SieTiaWinCCMsgMgtUpdateIntervall = Global.WinCC.WinCC.UpdateIntervall;
|
||||
Global.Settings.SieTiaWinCCMsgMgtWindowsName = Global.WinCC.WinCC.WindowsName;
|
||||
Global.Settings.SieTiaWinCCMsgMgtClassName = Global.WinCC.WinCC.WindowsClassName;
|
||||
Global.Settings.SieTiaWinCCMsgMgtBtnName = Global.WinCC.WinCC.ButtonName;
|
||||
|
||||
Global.Iba = ((Gui.FrmProcesses)sender).Iba;
|
||||
Global.Settings.IbaRecordDestinationath = Global.Iba.Iba.Destination;
|
||||
Global.Settings.IbaRecordSourcePath = Global.Iba.Iba.Source;
|
||||
Global.Settings.IbaAutoSync = Global.Iba.Iba.AutoStart;
|
||||
|
||||
Global.WindowMgt = ((Gui.FrmProcesses)sender).WindowMgt;
|
||||
Global.Window.Save();
|
||||
}
|
||||
|
||||
public override bool CanExecute(object parameter)
|
||||
{
|
||||
return Global.AdminRights;
|
||||
|
||||
Reference in New Issue
Block a user