Squashed 'FSI.Lib/' content from commit 6aa4846

git-subtree-dir: FSI.Lib
git-subtree-split: 6aa48465a834a7bfdd9cbeae8d2e4f769d0c0ff8
This commit is contained in:
maier_S
2022-03-23 10:15:26 +01:00
commit a0095a0516
62 changed files with 8405 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace FSI.Lib.Guis.SieTiaWinCCMsgMgt
{
/// <summary>
/// Interaktionslogik für FrmMain.xaml
/// </summary>
public partial class FrmMain : Window
{
public WinCC WinCC { get; set; }
public FrmMain()
{
InitializeComponent();
}
private void btnStart_Click(object sender, RoutedEventArgs e)
{
WinCC.Start();
CtrlMgt();
}
private void btnStop_Click(object sender, RoutedEventArgs e)
{
WinCC.Stop();
CtrlMgt();
}
private void CtrlMgt()
{
if (WinCC.Status)
{
btnStart.IsEnabled = false;
btnStop.IsEnabled = true;
pgProgress.IsIndeterminate = true;
}
else
{
btnStart.IsEnabled = true;
btnStop.IsEnabled = false;
pgProgress.IsIndeterminate = false;
}
}
}
}