Sicherung

This commit is contained in:
maier_S
2022-03-24 15:52:02 +01:00
parent c9c8a7bcd0
commit bea46135fd
228 changed files with 75756 additions and 118 deletions

View File

@@ -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();

View File

@@ -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;

View File

@@ -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;