VoltageToLaserChanged() private method

These are events triggered by one of the LockControlPanels. Example: User changes the voltage to be sent to the slave laser. The UI will call VoltageToLaserChanged. Each LockControlPanel knows which laser it corresponds to. so the "name" argument tells the controller which SlaveLaser class it needs to send the command to!
private VoltageToLaserChanged ( string name, double voltage ) : void
name string
voltage double
return void
Esempio n. 1
0
 private void VoltageToLaserChanged(object sender, EventArgs e)
 {
     try
     {
         controller.VoltageToLaserChanged(name, Double.Parse(VoltageToLaserTextBox.Text));
     }
     catch (Exception)
     {
     }
 }