public SubWindow(MainWindow w)
 {
     this.mainWindow = w;
     InitializeComponent();
     DataFile TimeArg = new DataFile();
     //ComboBoxItem TempItem = new ComboBoxItem();
     //TempItem.Content = TimeArg.CorrectMinute.ToString();
     this.ComboBox1.SelectedValue = TimeArg.CorrectMinute;
     //TempItem.Content = TimeArg.CorrectSecond.ToString();
     this.ComboBox2.SelectedValue = TimeArg.CorrectSecond;
     //TempItem.Content = TimeArg.RelaxMinute.ToString();
     this.ComboBox3.SelectedValue = TimeArg.RelaxMinute;
     //TempItem.Content = TimeArg.RelaxSecond.ToString();
     this.ComboBox4.SelectedValue = TimeArg.RelaxSecond;
     //((ComboBoxItem)this.ComboBox1.SelectedItem).Content = TimeArg.CorrectMinute;
     //((ComboBoxItem)this.ComboBox2.SelectedItem).Content = TimeArg.CorrectSecond;
     //((ComboBoxItem)this.ComboBox3.SelectedItem).Content = TimeArg.RelaxMinute;
     //((ComboBoxItem)this.ComboBox4.SelectedItem).Content = TimeArg.RelaxSecond;
 }
 public Handlers(MainWindow w)
 {
     this.mainWindow = w;
 }
 public Events(MainWindow w)
 {
     this.mainWindow = w;
     TdTimer = new Timer(100);
     TdTimer.Elapsed += new ElapsedEventHandler(CheckForDetectSignal);
     TdTimer.Elapsed += new ElapsedEventHandler(CheckForAnalyseSignal);
     TdTimer.Elapsed += new ElapsedEventHandler(CheckForLongTimeSignal);
     TdTimer.Elapsed += new ElapsedEventHandler(CheckForShortTimeSignal);
 }