Пример #1
0
      private void ActivityButton_HoldTimeout(object sender, HoldTimeoutEventArgs e)
      {
         if (false != RobotCommBus.Instance.Running)
         {
            RobotCommBus.Instance.Stop();
         }
         else
         {
            RobotCommBus.Instance.Start();
         }

         this.UpdateActivityButton();
      }
Пример #2
0
      void HoldButton_HoldTimeout(object sender, EventArgs e)
      {
         this.holdTimeout = true;
         this.holdTimer.Stop();

         HoldTimeoutEventArgs holdEventArg = new HoldTimeoutEventArgs();
         this.HoldTimeout(this, holdEventArg);
         this.holdTimeout = !holdEventArg.Handled;

         if (false != holdEventArg.Handled)
         {
            this.Release();
         }
      }
Пример #3
0
      private void DefaultButton_HoldTimeout(object sender, HoldTimeoutEventArgs e)
      {
         this.valueString.Clear();
         this.valueString.Append(this.DefaultValue);
         this.EnteredValueLabel.Text = this.valueString.ToString();
         this.AcceptedButton.Enabled = true;

         e.Handled = true;
      }
Пример #4
0
      private void CameraSelectButton_HoldTimeout(object sender, EventArgs e)
      {
         bool holdRepeat = this.HoldRepeat;

         this.holdTimeout = true;
         this.holdTimer.Stop();

         if (null != this.HoldTimeout)
         {
            HoldTimeoutEventArgs holdEventArg = new HoldTimeoutEventArgs();
            this.HoldTimeout(this, holdEventArg);
            this.holdTimeout = !holdEventArg.Handled;
            this.pressed = !holdEventArg.Handled;
         }

         if ((false != holdRepeat) && (false != this.holdTimeout))
         {
            if (0 != this.holdTimer.Interval)
            {
               this.holdTimer.Interval = this.HoldRepeatInterval;
               this.holdTimer.Start();
            }
         }

      }
Пример #5
0
      private void ValueToggleButton_HoldTimeout(object sender, EventArgs e)
      {
         this.holdTimeout = true;
         this.holdTimer.Stop();

         this.pressed = false;
         this.Invalidate();

         if (null != this.HoldTimeout)
         {
            HoldTimeoutEventArgs holdEventArg = new HoldTimeoutEventArgs();
            this.HoldTimeout(this, holdEventArg);
            this.holdTimeout = !holdEventArg.Handled;
         }
      }
Пример #6
0
 private void SystemResetButton_HoldTimeout(object sender, HoldTimeoutEventArgs e)
 {
    if (null != this.SystemResetHandler)
    {
       this.SystemResetHandler();
    }
 }
Пример #7
0
      private void TriggerDefaultsButton_HoldTimeout(object sender, HoldTimeoutEventArgs e)
      {
         ParameterAccessor.Instance.TriggerDefaults();

         MessageForm messageForm = new MessageForm();
         messageForm.Title = "SYSTEM DEFAULTS";
         messageForm.Message = "DEFAULTS ASSIGNED ON THE NEXT SYSTEM START";

         this.SetDialogLocation(this.TriggerDefaultsButton, messageForm);

         this.DimBackground();
         messageForm.ShowDialog();
         this.LightBackground();
      }
 private void ClampReleaseButton_HoldTimeout(object sender, HoldTimeoutEventArgs e)
 {
    NicBotComm.Instance.SetFeederClamp(true);
 }
 private void ClampHoldButton_HoldTimeout(object sender, HoldTimeoutEventArgs e)
 {
    NicBotComm.Instance.SetFeederClamp(false);
 }
Пример #10
0
 private void BodyClosedButton_HoldTimeout(object sender, HoldTimeoutEventArgs e)
 {
    NicBotComm.Instance.SetBodyPosition(BodyPositions.closed);
    this.UpdateDisplay();
 }
Пример #11
0
      private void DefaultButton_HoldTimeout(object sender, HoldTimeoutEventArgs e)
      {
         this.EnteredValue = this.DefaultValue;
         this.InitializeValueString();
         this.UpdateEnteredDisplay();

         e.Handled = true;
      }
Пример #12
0
      void TextPanelHoldTimer_Tick(object sender, EventArgs e)
      {
         this.holdTimer.Stop();

         if (null != this.HoldTimeout)
         {
            HoldTimeoutEventArgs holdEventArg = new HoldTimeoutEventArgs();
            this.HoldTimeout(this, holdEventArg);
         }
      }