private void ActivityButton_HoldTimeout(object sender, HoldTimeoutEventArgs e) { if (false != RobotCommBus.Instance.Running) { RobotCommBus.Instance.Stop(); } else { RobotCommBus.Instance.Start(); } this.UpdateActivityButton(); }
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(); } }
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; }
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(); } } }
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; } }
private void SystemResetButton_HoldTimeout(object sender, HoldTimeoutEventArgs e) { if (null != this.SystemResetHandler) { this.SystemResetHandler(); } }
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); }
private void BodyClosedButton_HoldTimeout(object sender, HoldTimeoutEventArgs e) { NicBotComm.Instance.SetBodyPosition(BodyPositions.closed); this.UpdateDisplay(); }
private void DefaultButton_HoldTimeout(object sender, HoldTimeoutEventArgs e) { this.EnteredValue = this.DefaultValue; this.InitializeValueString(); this.UpdateEnteredDisplay(); e.Handled = true; }
void TextPanelHoldTimer_Tick(object sender, EventArgs e) { this.holdTimer.Stop(); if (null != this.HoldTimeout) { HoldTimeoutEventArgs holdEventArg = new HoldTimeoutEventArgs(); this.HoldTimeout(this, holdEventArg); } }