Пример #1
0
 public MainViewModel()
 {
     _robot = new MoveMasterRobot();
     SaveSettings = new ActionCommand(SaveSettingsCommand);
     ReadSettings();
     _generalViewModel = new GeneralViewModel(_robot);
     _beerBotViewModel = new BeerBotViewModel(_robot);
     initialization = false;
 }
Пример #2
0
        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);
        }
Пример #3
0
 public BeerBotViewModel()
 {
     StartBeerCommand = new ActionCommand(StartBeerThread);
 }