Пример #1
0
        private void Control_MoveRelativePositive(object sender, EventArgs e)
        {
            IStageCommand relativeMove = new MotorizedStage.Commands.MoveRelative(1, Numeric_Relative.Value);

            if (stage.TrySendCommand(relativeMove))
            {
                DisplayStageErrors();
            }
        }
Пример #2
0
        private void Control_MoveRelativeNegative(object sender, EventArgs e)           //TODO when moving, check that is is in bounds, if not clip them so we can move.
        {
            IStageCommand relativeMove = new MotorizedStage.Commands.MoveRelative(1, -Numeric_Relative.Value);

            if (stage.TrySendCommand(relativeMove))
            {
                DisplayStageErrors();
            }
        }