private void btnAbsulate_Click(object sender, EventArgs e) { CommandMoveAbsolute commandMoveAbsolute = CommandFactory.CreateCommand <CommandMoveAbsolute>("Move Absolute"); commandMoveAbsolute.X = this.inputAbsoluteX.Value; commandMoveAbsolute.Y = this.inputAbsoluteY.Value; commandMoveAbsolute.Z = this.inputAbsoluteZ.Value; CommandFactory.CommandQueue.Push(commandMoveAbsolute); }
private bool CommandMoveAbsolute(Position position) { CommandMoveAbsolute commandMoveAbsolute = CommandFactory.CreateCommand <CommandMoveAbsolute>("Move Absolute"); commandMoveAbsolute.X = position.X; commandMoveAbsolute.Y = position.Y; commandMoveAbsolute.Z = position.Z; return(commandMoveAbsolute.Execute()); }
private void MoveAbsolutePosition(int x, int y, int z) { CommandMoveAbsolute commandMoveAbsolute = CommandFactory.CreateCommand <CommandMoveAbsolute>("Move Absolute"); commandMoveAbsolute.X = x; commandMoveAbsolute.Y = y; commandMoveAbsolute.Z = z; CommandFactory.CommandQueue.Push(commandMoveAbsolute); }