Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
        protected virtual void sendCommandEvent(CmdEventArgs e)
        {
            EventHandler <CmdEventArgs> handler = RaiseCmdEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 4
0
 private void OnRaiseCoordSystemEvent(object sender, CmdEventArgs e)
 {
     sendCommand(e.Command);
 }