Sicherung

This commit is contained in:
maier_S
2022-03-23 14:16:48 +01:00
parent fef3fa4274
commit ede0ae35bd
16 changed files with 152 additions and 89 deletions

View File

@@ -59,6 +59,25 @@ namespace FSI.Lib.Guis.SieTiaWinCCMsgMgt
backgroundWorker.DoWork += BackgroundWorker_DoWork;
backgroundWorker.ProgressChanged += BackgroundWorker_ProgressChanged;
}
public WinCC(bool autoStart, int updateIntervall, string windowsName, string windowsClassName, string buttonName)
{
AutoStart = autoStart;
UpdateIntervall = updateIntervall;
WindowsName = windowsName;
WindowsClassName = windowsClassName;
ButtonName = buttonName;
backgroundWorker = new BackgroundWorker
{
WorkerReportsProgress = true,
WorkerSupportsCancellation = true
};
backgroundWorker.DoWork += BackgroundWorker_DoWork;
backgroundWorker.ProgressChanged += BackgroundWorker_ProgressChanged;
if (AutoStart)
{
Start();