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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,11 @@
|
||||
using FSI.Lib.WinSettings;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace FSI.BT.Tools
|
||||
{
|
||||
public class AppSettings : XmlSettings
|
||||
{
|
||||
|
||||
|
||||
public AppSettings(string fileName) : base(fileName)
|
||||
{
|
||||
TimeStampFormat = "_yyyyMMdd_HHmmss";
|
||||
@@ -15,9 +16,9 @@ namespace FSI.BT.Tools
|
||||
[EncryptedSetting]
|
||||
public string[] Users { get; set; }
|
||||
[EncryptedSetting]
|
||||
public string[] Admins{ get; set; }
|
||||
public string[] Admins { get; set; }
|
||||
[EncryptedSetting]
|
||||
public string SuperAdmin{ get; set; }
|
||||
public string SuperAdmin { get; set; }
|
||||
public string TimeStampFormat { get; set; }
|
||||
public string[] SieSimaticManagerExe { get; set; }
|
||||
public string[] SieTiaV13Exe { get; set; }
|
||||
@@ -62,5 +63,16 @@ namespace FSI.BT.Tools
|
||||
public string SieTiaWinCCMsgMgtWindowsName { get; set; }
|
||||
public string SieTiaWinCCMsgMgtClassName { get; set; }
|
||||
public string SieTiaWinCCMsgMgtBtnName { get; set; }
|
||||
public bool IbaAutoSync { get; set; }
|
||||
public string IbaRecordSourcePath { get; set; }
|
||||
public string IbaRecordDestinationath { get; set; }
|
||||
public string[] WindowMgtName { get; set; }
|
||||
public string[] WindowMgtClassName { get; set; }
|
||||
public int WindowMgtUpdateInterval { get; set; }
|
||||
public bool WindowMgtAutostart { get; set; }
|
||||
public int[] WindowMgtX { get; set; }
|
||||
public int[] WindowMgtY { get; set; }
|
||||
public int[] WindowMgtHeight { get; set; }
|
||||
public int[] WindowMgtWight { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
<Settings>
|
||||
<Users>+I945AMzKKYBAAAAB21haWVyX3M=</Users>
|
||||
<Admins>e+Dt7FRUDDoBAAAAB21haWVyX3M=</Admins>
|
||||
|
||||
<TimeStampFormat>_yyyyMMdd_HHmmss</TimeStampFormat>
|
||||
|
||||
<SieSimaticManagerExe>C:\Program Files (x86)\Siemens\Step7\S7BIN\S7tgtopx.exe</SieSimaticManagerExe>
|
||||
<SieTiaV13Exe>C:\Program Files (x86)\Siemens\Automation\Portal V13\Bin\Siemens.Automation.Portal.exe</SieTiaV13Exe>
|
||||
<SieTiaV14Exe>C:\Program Files\Siemens\Automation\Portal V14\Bin\Siemens.Automation.Portal.exe</SieTiaV14Exe>
|
||||
@@ -29,6 +31,7 @@
|
||||
<VncExe>C:\Program Files\RealVNC\VNC Viewer\vncviewer.exe,c:\Users\maier_s\OneDrive - Fondium Group GmbH\Documents\Apps\VNC-Viewer-6.20.113-Windows-64bit.exe</VncExe>
|
||||
<VncAdrBookExe>C:\Program Files\RealVNC\VNC Viewer\vncaddrbook.exe</VncAdrBookExe>
|
||||
<IbaAnalyzerExe>C:\Program Files\iba\ibaAnalyzer\ibaAnalyzer.exe</IbaAnalyzerExe>
|
||||
|
||||
<ZentralWebUrl>http://desiaugetwf/web/?AspxAutoDetectCookieSupport=1</ZentralWebUrl>
|
||||
<SchichtbuchUrl>http://10.10.1.42/SKSchichtbuchWeb/de-DE/Plugin/ShiftBook/ShiftBook/IR</SchichtbuchUrl>
|
||||
<SPSUrl>http://10.10.1.42/SKChangeTrackerWeb/de-DE/Plugin/ChangeTracker</SPSUrl>
|
||||
@@ -39,11 +42,17 @@
|
||||
<GiteaUrl>http://desiaugetc7-088:3000/</GiteaUrl>
|
||||
<WikiUrl>http://desiaugetc7-088:3001/en/home</WikiUrl>
|
||||
<ErpUrl>https://mingle-portal.eu1.inforcloudsuite.com/FONDIUM_prd</ErpUrl>
|
||||
|
||||
<EplPdfPath>\\10.10.1.40\Betriebstechnik\Eplan</EplPdfPath>
|
||||
<EplPrjPath>\\fondium.org\DESI$\AUG_Abteilung\Betriebstechnik\EPL\P8\Data\Projekte\FSI\</EplPrjPath>
|
||||
|
||||
<SieTiaWinCCMsgMgtAutostart>true</SieTiaWinCCMsgMgtAutostart>
|
||||
<SieTiaWinCCMsgMgtUpdateIntervall>10</SieTiaWinCCMsgMgtUpdateIntervall>
|
||||
<SieTiaWinCCMsgMgtWindowsName></SieTiaWinCCMsgMgtWindowsName>
|
||||
<SieTiaWinCCMsgMgtClassName>#32770</SieTiaWinCCMsgMgtClassName>
|
||||
<SieTiaWinCCMsgMgtBtnName>Zur Kenntnis genommen</SieTiaWinCCMsgMgtBtnName>
|
||||
|
||||
<IbaAutoSync>true</IbaAutoSync>
|
||||
<IbaRecordSourcePath>d:\tmp</IbaRecordSourcePath>
|
||||
<IbaRecordDestinationath>c:\tmp</IbaRecordDestinationath>
|
||||
</Settings>
|
||||
@@ -18,7 +18,7 @@ namespace FSI.BT.Tools
|
||||
InitializeComponent();
|
||||
DataContext = this;
|
||||
_isOpenHome = true;
|
||||
tbversion.Text = "v" + Assembly.GetExecutingAssembly().GetName().Version.Major + "." + Assembly.GetExecutingAssembly().GetName().Version.Minor;
|
||||
tbversion.Text = "v" + Assembly.GetExecutingAssembly().GetName().Version.Major + "." + Assembly.GetExecutingAssembly().GetName().Version.Minor + "b";
|
||||
}
|
||||
|
||||
#region Home
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,33 +5,311 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:FSI.BT.Tools.Gui"
|
||||
mc:Ignorable="d"
|
||||
Title="FrmProcesses"
|
||||
Height="450"
|
||||
Width="800">
|
||||
Title="FSI.BT.Tools Prozesse"
|
||||
SizeToContent="WidthAndHeight"
|
||||
Height="Auto"
|
||||
Width="Auto">
|
||||
<Grid>
|
||||
<TabControl>
|
||||
<TabItem Header="WinCC">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Text="Fenster-Name:" Margin="5 5 5 5"/>
|
||||
<TextBox x:Name="TbWindowName"
|
||||
MinWidth="200"
|
||||
<TabItem Header="WinCC"
|
||||
DataContext="{Binding WinCC }">
|
||||
|
||||
<StackPanel Grid.IsSharedSizeScope="True">
|
||||
<Grid Margin="0 5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"
|
||||
SharedSizeGroup="a" />
|
||||
<ColumnDefinition Width="*"
|
||||
MinWidth="200" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Fenster-Name:"
|
||||
Margin="5 5 5 5" />
|
||||
<TextBox Grid.Column="1"
|
||||
Text="{Binding WinCC.WindowsName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="5 5 5 5" />
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
||||
</Grid>
|
||||
|
||||
<Grid Margin="0 5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"
|
||||
SharedSizeGroup="a" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Class-Name:"
|
||||
Margin="5 5 5 5" />
|
||||
<TextBox x:Name="TbClassName"
|
||||
MinWidth="200"
|
||||
<TextBox Grid.Column="1"
|
||||
Text="{Binding WinCC.WindowsClassName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="5 5 5 5" />
|
||||
</Grid>
|
||||
<Grid Margin="0 5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"
|
||||
SharedSizeGroup="a" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Schältfläche-Name:"
|
||||
Margin="5 5 5 5" />
|
||||
<TextBox Grid.Column="1"
|
||||
Text="{Binding WinCC.ButtonName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="5 5 5 5" />
|
||||
</Grid>
|
||||
<Grid Margin="0 5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"
|
||||
SharedSizeGroup="a" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Update-Intervall:"
|
||||
Margin="5 5 5 5" />
|
||||
<TextBox Grid.Column="1"
|
||||
Text="{Binding WinCC.UpdateIntervall, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="5 5 5 5" />
|
||||
<TextBlock Text="ms"
|
||||
Grid.Column="2"
|
||||
Margin="5 5 5 5" />
|
||||
</Grid>
|
||||
<Grid Margin="0 5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"
|
||||
SharedSizeGroup="a" />
|
||||
<ColumnDefinition Width="*" />
|
||||
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Autostart:"
|
||||
Margin="5 5 5 5" />
|
||||
<CheckBox Grid.Column="1"
|
||||
IsChecked="{Binding WinCC.AutoStart, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="5 5 5 5" />
|
||||
</Grid>
|
||||
|
||||
<StackPanel Orientation="Horizontal"
|
||||
HorizontalAlignment="Right">
|
||||
<Button Content="Start"
|
||||
MinWidth="75"
|
||||
Command="{Binding CmdStart}"
|
||||
Margin="0 0 10 0" />
|
||||
<Button Content="Stop"
|
||||
MinWidth="75"
|
||||
Command="{Binding CmdStop}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
</TabItem>
|
||||
|
||||
<TabItem Header="IBA-Sync"
|
||||
DataContext="{Binding Iba }">
|
||||
|
||||
<StackPanel Grid.IsSharedSizeScope="True">
|
||||
<Grid Margin="0 5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"
|
||||
SharedSizeGroup="a" />
|
||||
<ColumnDefinition Width="*"
|
||||
MinWidth="200" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Quell-Verzeichnis:"
|
||||
Margin="5 5 5 5" />
|
||||
<TextBox Grid.Column="1"
|
||||
Text="{Binding Iba.Source, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="5 5 5 5" />
|
||||
</Grid>
|
||||
|
||||
<Grid Margin="0 5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"
|
||||
SharedSizeGroup="a" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Ziel-Verzeichnis:"
|
||||
Margin="5 5 5 5" />
|
||||
<TextBox Grid.Column="1"
|
||||
Text="{Binding Iba.Destination, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="5 5 5 5" />
|
||||
</Grid>
|
||||
<Grid Margin="0 5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"
|
||||
SharedSizeGroup="a" />
|
||||
<ColumnDefinition Width="*" />
|
||||
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Autostart:"
|
||||
Margin="5 5 5 5" />
|
||||
<CheckBox Grid.Column="1"
|
||||
IsChecked="{Binding Iba.AutoStart, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="5 5 5 5" />
|
||||
</Grid>
|
||||
|
||||
<StackPanel Orientation="Horizontal"
|
||||
HorizontalAlignment="Right">
|
||||
<Button Content="Start"
|
||||
MinWidth="75"
|
||||
Command="{Binding CmdStart}"
|
||||
Margin="0 0 10 0" />
|
||||
<Button Content="Stop"
|
||||
MinWidth="75"
|
||||
Command="{Binding CmdStop}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
</TabItem>
|
||||
|
||||
<TabItem Header="Fenster Mgt"
|
||||
DataContext="{Binding WindowMgt }"
|
||||
HorizontalAlignment="Left"
|
||||
Width="76">
|
||||
|
||||
<StackPanel Grid.IsSharedSizeScope="True">
|
||||
<Grid Margin="0 5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"
|
||||
SharedSizeGroup="a" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Fenster:"
|
||||
Margin="5 5 5 5" />
|
||||
<ComboBox ItemsSource="{Binding Plcs}"
|
||||
SelectedItem="{Binding SelectedPlc, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
DisplayMemberPath="Name"
|
||||
SelectedIndex="0"
|
||||
Grid.Column="1"
|
||||
MinWidth="250"
|
||||
Margin="5 5 5 5" />
|
||||
<Separator Width="10"
|
||||
Grid.Column="2"
|
||||
Background="Transparent" />
|
||||
<Button Content="neu"
|
||||
Name="ABC"
|
||||
Command="{Binding CmdCreatNewConnection}"
|
||||
Grid.Column="3"
|
||||
MinWidth="50"
|
||||
Margin="5 5 5 5"/>
|
||||
<Button Content="löschen"
|
||||
Command="{Binding CmdDelConnection}"
|
||||
Grid.Column="4"
|
||||
Margin="5 5 5 5"
|
||||
MinWidth="50" />
|
||||
</Grid>
|
||||
<Grid Margin="0 5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"
|
||||
SharedSizeGroup="a" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Fenster Name:"
|
||||
Margin="5 5 5 5" />
|
||||
<TextBox Grid.Column="1"
|
||||
Text="{Binding Iba.Destination, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="5 5 5 5" />
|
||||
</Grid>
|
||||
<Grid Margin="0 5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"
|
||||
SharedSizeGroup="a" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Klassen Name:"
|
||||
Margin="5 5 5 5" />
|
||||
<TextBox Grid.Column="1"
|
||||
Text="{Binding Iba.Destination, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="5 5 5 5" />
|
||||
</Grid>
|
||||
<Grid Margin="0 5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"
|
||||
SharedSizeGroup="a" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Fenster Höhe:"
|
||||
Margin="5 5 5 5" />
|
||||
<TextBox Grid.Column="1"
|
||||
Text="{Binding Iba.Destination, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="5 5 5 5" />
|
||||
</Grid>
|
||||
<Grid Margin="0 5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"
|
||||
SharedSizeGroup="a" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Fenster Breite:"
|
||||
Margin="5 5 5 5" />
|
||||
<TextBox Grid.Column="1"
|
||||
Text="{Binding Iba.Destination, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="5 5 5 5" />
|
||||
</Grid>
|
||||
<Grid Margin="0 5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"
|
||||
SharedSizeGroup="a" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="X-Position:"
|
||||
Margin="5 5 5 5" />
|
||||
<TextBox Grid.Column="1"
|
||||
Text="{Binding Iba.Destination, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="5 5 5 5" />
|
||||
</Grid>
|
||||
<Grid Margin="0 5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"
|
||||
SharedSizeGroup="a" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Y-Position:"
|
||||
Margin="5 5 5 5" />
|
||||
<TextBox Grid.Column="1"
|
||||
Text="{Binding Iba.Destination, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="5 5 5 5" />
|
||||
</Grid>
|
||||
<Grid Margin="0 5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"
|
||||
SharedSizeGroup="a" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Update-Intervall:"
|
||||
Margin="5 5 5 5" />
|
||||
<TextBox Grid.Column="1"
|
||||
Text="{Binding UpdateIntervall, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="5 5 5 5" />
|
||||
<TextBlock Text="ms"
|
||||
Grid.Column="2"
|
||||
Margin="5 5 5 5" />
|
||||
</Grid>
|
||||
<Grid Margin="0 5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"
|
||||
SharedSizeGroup="a" />
|
||||
<ColumnDefinition Width="*" />
|
||||
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Autostart:"
|
||||
Margin="5 5 5 5" />
|
||||
<CheckBox Grid.Column="1"
|
||||
IsChecked="{Binding AutoStart, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="5 5 5 5" />
|
||||
</Grid>
|
||||
|
||||
<StackPanel Orientation="Horizontal"
|
||||
HorizontalAlignment="Right">
|
||||
<Button Content="Start"
|
||||
MinWidth="75"
|
||||
Command="{Binding CmdStart}"
|
||||
Margin="0 0 10 0" />
|
||||
<Button Content="Stop"
|
||||
MinWidth="75"
|
||||
Command="{Binding CmdStop}" />
|
||||
</StackPanel>
|
||||
|
||||
</StackPanel>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
using System;
|
||||
using FSI.Lib.Guis.IbaDirSync.ViewModel;
|
||||
using FSI.Lib.Guis.SetSizePosExWindow.ViewModel;
|
||||
using FSI.Lib.Guis.SieTiaWinCCMsgMgt.ViewModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -19,9 +22,15 @@ namespace FSI.BT.Tools.Gui
|
||||
/// </summary>
|
||||
public partial class FrmProcesses : Window
|
||||
{
|
||||
public ViewModelWinCC WinCC { get; set; }
|
||||
public ViewModelIba Iba { get; set; }
|
||||
|
||||
public ViewModelWindow WindowMgt { get; set; }
|
||||
|
||||
public FrmProcesses()
|
||||
{
|
||||
InitializeComponent();
|
||||
InitializeComponent();
|
||||
DataContext = this;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@
|
||||
|
||||
<tb:TaskbarIcon.ContextMenu>
|
||||
<ContextMenu>
|
||||
<MenuItem Header="Beenden"
|
||||
Command="{commands:ExitCommand}"/>
|
||||
<Separator />
|
||||
<MenuItem Header="Dienste"
|
||||
Command="{commands:ProcessCommand}" />
|
||||
<Separator />
|
||||
<MenuItem Header="Beenden"
|
||||
Command="{commands:ExitCommand}" />
|
||||
</ContextMenu>
|
||||
</tb:TaskbarIcon.ContextMenu>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user