private void OnRaiseLaserEvent(object sender, CmdEventArgs e) { if (!_serial_form.requestSend(e.Command, true)) // check if COM is still open { updateControls(); } Properties.Settings.Default.counterUseLaserSetup += 1; }
protected virtual void sendCommandEvent(CmdEventArgs e) { EventHandler <CmdEventArgs> handler = RaiseCmdEvent; if (handler != null) { handler(this, e); } }
private void OnRaiseProbingEvent(object sender, CmdEventArgs e) { string[] commands; commands = e.Command.Split(';'); if (!_serial_form.serialPortOpen) { return; } foreach (string btncmd in commands) { sendCommand(btncmd.Trim()); } timerUpdateControlSource = "OnRaiseProbingEvent"; updateControls(); Properties.Settings.Default.counterUseProbing += 1; }
private void OnRaiseCoordSystemEvent(object sender, CmdEventArgs e) { sendCommand(e.Command); }