Example #1
0
 public CreateTaskHandler(CreateTaskVm createVm)
 {
     _createVm = createVm;
     Bvm       = new NavigationHelperVm();
     DoGoTask  = new RelayCommandClass(GoTask);
     Dc        = new DateConverter();
 }
Example #2
0
 public CrudVM()
 {
     ManagerHandler    = new ManagerHandler(this);
     DoCreateTask      = new RelayCommandClass(ManagerHandler.CreateTask);
     NewItem           = new TaskEquipmentStation();
     Stations          = ManagerHandler.StationCollection();
     TaskTypes         = ManagerHandler.typeArray;
     TaskSchedules     = ManagerHandler.scheduleArray;
     EquipmentStations = ManagerHandler.EquipmentStationsCollection();
 }
Example #3
0
 public UpdateTaskHandler(UpdateTaskVm updateVm)
 {
     _updateVm        = updateVm;
     Bvm              = new NavigationHelperVm();
     DoGoTask         = new RelayCommandClass(GoTask);
     Dc               = new DateConverter();
     Tvm              = new TaskVm();
     Tvm.SelectedItem = new TaskEquipmentStation();
     Singleton        = TaskEquipmentStationSingleton.GetInstance();
 }
Example #4
0
 public NavigationHelperVm()
 {
     CurrentUser      = UserSingleton.GetInstance();
     TaskSingleton    = TaskEquipmentStationSingleton.GetInstance();
     _frameNavigation = new FrameNavigateClass();
     GoTask           = new RelayCommandClass(DoTask);
     GoDone           = new RelayCommandClass(DoDone);
     DoGoCreate       = new RelayCommandClass(GoCreate);
     UserName         = CurrentUser.GetUsername();
     UserId           = CurrentUser.GetUserID();
 }
        public MessageViewModel()
        {
            MyMessages = new ObservableCollection <string>()
            {
                // creating our predetermined messages.
                "Hello world!",
                "My name is Jill",
                "I love learning commands!",
                // special messages
                "Im a message box!",
                "Im a console!"
            };

            MessageBoxCommand = new RelayCommandClass(DisplayMessageBox, MessageBoxCanUse);
            ConsoleLogCommand = new RelayCommandClass(DisplayInConsole, ConsoleCanUse);
        }