private void toggleCryo(object sender, NationalInstruments.UI.ActionEventArgs e) { bool state = cryoSwitch.Value; cryoLED.Value = state; castController.SetCryoState(state); }
private void toggleHeater(object sender, NationalInstruments.UI.ActionEventArgs e) { bool state = heaterSwitch.Value; heaterLED.Value = state; castController.SetHeaterState(state); }
private void SetSweepDirection(object sender, NationalInstruments.UI.ActionEventArgs e) { if (sweepDirectionSwitch.Focused) // Only do it if its a UI event { WindfreakTabController castController = (WindfreakTabController)controller; bool state = GetSweepDirection(); bool channel = GetChannel(); castController.SetSweepDirection(state, channel); } }
private void switch1_StateChanged(object sender, NationalInstruments.UI.ActionEventArgs e) { if (switch1.Value) { AutoWelding.mcTC6200P.SetOn(); } else { AutoWelding.mcTC6200P.SetOff(); } }
private void switch1_StateChanged(object sender, NationalInstruments.UI.ActionEventArgs e) { if (switch1.Value == true) { GlobeVal.myarm.setrunstate(1); led1.Value = true; } else { GlobeVal.myarm.setrunstate(0); led1.Value = false; } }
private void switch2_StateChanged(object sender, NationalInstruments.UI.ActionEventArgs e) { }
private void S30_StateChanged(object sender, NationalInstruments.UI.ActionEventArgs e) { S3Status.WriteValue(S30.Value); }
private void Enable_Lamp20_StateChanged(object sender, NationalInstruments.UI.ActionEventArgs e) { Enable_Handle(sender, Lamp20); }
// UI Event Handlers private void ToggleChannel(object sender, NationalInstruments.UI.ActionEventArgs e) { castController.SyncChannel(); }