コード例 #1
0
 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;
 }
コード例 #2
0
        protected virtual void sendCommandEvent(CmdEventArgs e)
        {
            EventHandler <CmdEventArgs> handler = RaiseCmdEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }
コード例 #3
0
        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;
        }
コード例 #4
0
 private void OnRaiseCoordSystemEvent(object sender, CmdEventArgs e)
 {
     sendCommand(e.Command);
 }