public void UpdateTriggerInfoState() { for (int k = 1; k <= 4; k++) { TriggerProperties tp = TriggerProperties.FindTrigger(Recorder.TriggerOptions, k); string id = k.ToString(); Button b = Recorder.FindName("TriggerState" + id) as Button; if (b != null) { b.Visibility = ((tp == null) ? Visibility.Collapsed : Visibility.Visible); } } }
void TriggerState_Click(object sender, RoutedEventArgs e) { Button b = sender as Button; if (b != null) { TriggerProperties tp = TriggerProperties.FindTrigger(Recorder.TriggerOptions, b.Name); if (tp != null) { //Toggle trigger state. Send to all devices in deviceMask. if (Controller != null) { Controller.ToggleTriggerOutput(tp); } } } }