private void MoveZAxis() { CommandMoveZ commandMoveZ = CommandFactory.CreateCommand <CommandMoveZ>("Move Z"); commandMoveZ.MoveLength = 1; commandMoveZ.Execute(); }
private void btnZRight_Click(object sender, EventArgs e) { if (IsFixedLength) { if (IsLengthLegal(this.MotionStep)) { CommandMoveZ commandMoveZ = CommandFactory.CreateCommand <CommandMoveZ>("Move Z"); commandMoveZ.MoveLength = MotionStep; CommandFactory.CommandQueue.Push(commandMoveZ); } } else { if (IsLengthLegal(MotionSpeed)) { CommandSetMoveSpeedZ commandSetMoveSpeedZ = CommandFactory.CreateCommand <CommandSetMoveSpeedZ>("Set Move Speed Z"); commandSetMoveSpeedZ.Speed = MotionSpeed; CommandFactory.CommandQueue.Push(commandSetMoveSpeedZ); } } }