private void LoadNewParametersSet_Click(object sender, RoutedEventArgs e)
 {
     Button btn = sender as Button;
     CommunicationManager.SleepTime = 1000;
     LoadNewParametersSet.Data = byte.Parse(btn.Uid);
     group = new MessagesGroup(messages);
     group.CreateGroupMessages(true);
 }
 internal void Show()
 {
     CommunicationManager.SleepTime = 1000;
     model.Timer("Start");
     this.Visibility = System.Windows.Visibility.Visible;
     StartPanel.Visibility = Visibility.Visible;
     model.IsSet = false;
     group = new MessagesGroup(messages);
     group.CreateGroupMessages(true);
 }
 private void ResetChannel_Click(object sender, RoutedEventArgs e)
 {
     if (resetChannel1.IsChecked == false && resetChannel4.IsChecked == false && resetChannel3.IsChecked == false && resetChannel2.IsChecked == false)
     {
         MessageBox.Show("Please Select at least one Channel");
         return;
     }
     CommunicationManager.SleepTime = 1000;
     group = new MessagesGroup(messages);
     group.CreateGroupMessages(true);
 }
 private void RadioButton_Checked(object sender, RoutedEventArgs e)
 {
     Valuesvisability = System.Windows.Visibility.Collapsed;
     buttonspannel.IsEnabled = false;
     tabControl.SelectedIndex = 0;
     Selectedradio = sender as RadioButton;
     SelectedChannel.Text = Selectedradio.Content.ToString();
     param69.SetLoop(Selectedradio.Uid);
     messages.Clear();
     // if (OnShow)
     messages.Add(readtotalscantime);
     messages.Add(r);
     messages.Add(rv);
     group = new MessagesGroup(main, messages);
     group.CreateGroupMessages(true);
     //OnShow = false;
 }
 internal void Show()
 {
     CommunicationManager.SleepTime = 100;
     group = new MessagesGroup(main, messages);
     group.CreateGroupMessages(false);
     tabbar.SelectedIndex = 0;
     this.Visibility = Visibility.Visible;
 }
 private void SetData_Click(object sender, RoutedEventArgs e)
 {
     CommunicationManager.SleepTime = 100;
     List<DetectorProperty> tempmessages = new List<DetectorProperty>();
     foreach (DetectorProperty item in messages)
     {
         if (item.MadeChange)
             tempmessages.Add(item);
     }
     if (tempmessages.Count > 0)
     {
         group = new MessagesGroup(main, tempmessages);
         group.CreateGroupMessages(true);
         //tabbar.SelectedIndex = 0;
     }
 }
 internal void Hide()
 {
     if (this.Visibility == Visibility.Visible)
     {
         ForceAllOutputandLeds.Data = ExitData;
         group = new MessagesGroup(messages);
         group.CreateGroupMessages(true);
         this.Visibility = System.Windows.Visibility.Collapsed;
     }
 }
 internal void Show()
 {
     CommunicationManager.SleepTime = 1000;
     this.Visibility = System.Windows.Visibility.Visible;
     ForceAllOutputandLeds.Data = EnterData;
     group = new MessagesGroup(messages);
     group.CreateGroupMessages(true);
 }
 public static void Update()
 {
     List<byte> newData = new List<byte>();
     newData.Add(GetLedsFromCannels(channel1, channel2, ganeral));
     newData.Add(GetLedsFromCannels(channel3, channel4));
     newData.Add(GetLedsGeneral(ganeral));
     ForceAllOutputandLeds.Data = newData.ToArray();
     group = new MessagesGroup(messages);
     group.CreateGroupMessages(true);
 }
 private void SendResults()
 {
     calibrateModel.Header = CalibrateModel.HPointFrequency;
     group = new MessagesGroup(messages);
     group.CreateGroupMessages(true);
     group = new MessagesGroup(messages);
     group.CreateGroupMessages(true);
     group = new MessagesGroup(messages);
     group.CreateGroupMessages(true);
     group = new MessagesGroup(messages);
     group.CreateGroupMessages(true);
 }
 private void StartCalibration()
 {
     if (MessageBoxResult.No == MessageBox.Show("Please check that the calibration card is connected properly.\n\tClick \"Yes\" to continue.\n\tClick \"No\" to abort.", "Calibration Card connected?", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No))
         return;
     tempbtn.IsEnabled = false;
     stack.Children.Clear();
     list1.Visibility = Visibility.Collapsed;
     calibrateModel.Header = CalibrateModel.HStart;
     calibrateModel.State = CalibrateState.Start;
     group = new MessagesGroup(messages);
     group.CreateGroupMessages(true);
 }
 void timer_Tick(object sender, EventArgs e)
 {
     //if (group == null || group.AllDone)
     {
         group = new MessagesGroup(messages);
         group.CreateGroupMessages(true);
     }
 }
Exemple #13
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     model.IsSet = true;
     group = new MessagesGroup(messages);
     group.CreateGroupMessages(true);
 }
 private void Readtotalscantime_Click(object sender, RoutedEventArgs e)
 {
     List<DetectorProperty> messages = new List<DetectorProperty>();
     Readtotalscantime readtotalscantime = new Readtotalscantime();
     messages.Add(readtotalscantime);
     group = new MessagesGroup(main, messages);
     group.CreateGroupMessages(true);
 }