public MainViewModel() { _robot = new MoveMasterRobot(); SaveSettings = new ActionCommand(SaveSettingsCommand); ReadSettings(); _generalViewModel = new GeneralViewModel(_robot); _beerBotViewModel = new BeerBotViewModel(_robot); initialization = false; }
public GeneralViewModel() { _coordinateCounter = 0; Coordinates = new ObservableCollection<Coordinate>(); Commands = new ObservableCollection<RobotCommand>(); AddCoordinateCommand = new ActionCommand(AddCoordinate); SaveCoordinatesCommand = new ActionCommand(SaveCoordinates); LoadCoordinatesCommand = new ActionCommand(LoadCoordinates); ResetAbsolutCommand = new ActionCommand(ResetAbsolut); ResetJointCommand = new ActionCommand(ResetJoint); AddCommandJointCommand = new ActionCommand(AddCommandJoint); AddCommandAbsolutCommand = new ActionCommand(AddCommandAbsolut); MoveInstantJointCommand = new ActionCommand(MoveInstantJoint); MoveInstantAbsolutCommand = new ActionCommand(MoveInstantAbsolut); SaveCommandsCommand = new ActionCommand(SaveCommands); LoadCommandsCommand = new ActionCommand(LoadCommands); WhereCommand = new ActionCommand(Where); AddCoordinateWhereCommand = new ActionCommand(AddCoordinateWhere); AddGripCloseCommand = new ActionCommand(AddGripClose); AddGripOpenCommand = new ActionCommand(AddGripOpen); GripCloseInstantCommand = new ActionCommand(GripCloseInstant); GripOpenInstantCommand = new ActionCommand(GripOpenInstant); NestCommand = new ActionCommand(Nest); OriginCommand = new ActionCommand(Origin); ResetCommand = new ActionCommand(Reset); DeleteCoordinateCommand = new ActionCommand(DeleteCoordinate); DeleteCommandCommand = new ActionCommand(DeleteCommand); LoadCoordinatesToCommand = new ActionCommand(LoadCoordinatesTo); MoveCommandUpCommand = new ActionCommand(MoveCommandUp); MoveCommandDownCommand = new ActionCommand(MoveCommandDown); MoveCoordinateUpCommand = new ActionCommand(MoveCoordinateUp); MoveCoordinateDownCommand = new ActionCommand(MoveCoordinateDown); ExecuteCommandsCommand = new ActionCommand(ExecuteCommands); SetTimeoutCommand = new ActionCommand(SetTimeout); }
public BeerBotViewModel() { StartBeerCommand = new ActionCommand(StartBeerThread); }