Beispiel #1
0
        public ShellViewModel(IRegionManager regionManager, IEventAggregator eventAggregator)
        {
            this.regionManager   = regionManager;
            this.eventAggregator = eventAggregator;
            NavigateCommand      = new DelegateCommand(Navigate, CanExecuteMethod);
            NavigateCommand.ObservesCanExecute(() => this.IsBackEnabled);

            this.eventAggregator.GetEvent <ControlBackFlowEvent>().Subscribe(ControlActionBackFlowEvent, ThreadOption.UIThread, true);
            this.eventAggregator.GetEvent <NavigationInfoEvent>().Subscribe(OnNavigationInfoEvent, ThreadOption.UIThread, true);
            this.IsEnabled = true;
        }
Beispiel #2
0
 private void InitSelectEmployeeCommand()
 {
     SelectEmployeeCommand = new DelegateCommand <UserDto>(OnSelectEmployee);
     SelectEmployeeCommand.ObservesCanExecute(() => IsNotBusy);
 }
 private void InitSelectSessionCommand()
 {
     SelectSessionCommand = new DelegateCommand <SessionDto>(OnSelectSession);
     SelectSessionCommand.ObservesCanExecute(() => IsNotBusy);
 }
 private void InitEndSessionCommand()
 {
     EndSessionCommand = new DelegateCommand <object>(OnEndSession);
     EndSessionCommand.ObservesCanExecute(() => IsNotBusy);
 }
 private void InitSelectSidebarCommand()
 {
     SelectSidebarCommand = new DelegateCommand <SelectionModel>(OnSelectSidebar);
     SelectSidebarCommand.ObservesCanExecute(() => IsNotBusy);
 }
 private void InitTakeImageCommand()
 {
     TakeImageCommand = new DelegateCommand <object>(OnTakeImage);
     TakeImageCommand.ObservesCanExecute(() => IsNotBusy);
 }
 private void InitDeleteCommand()
 {
     DeleteCommand = new DelegateCommand <object>(OnDelete);
     DeleteCommand.ObservesCanExecute(() => IsNotBusy);
 }
 private void InitChangeIconCommand()
 {
     ChangeIconCommand = new DelegateCommand <object>(OnChangeIcon);
     ChangeIconCommand.ObservesCanExecute(() => IsNotBusy);
 }
Beispiel #9
0
 private void InitMinusQuantityCommand()
 {
     MinusQuantityCommand = new DelegateCommand <object>(OnMinusQuantity);
     MinusQuantityCommand.ObservesCanExecute(() => IsNotBusy);
 }
Beispiel #10
0
 private void InitSelectZoneCommand()
 {
     SelectZoneCommand = new DelegateCommand <ZoneDto>(OnSelectZone);
     SelectZoneCommand.ObservesCanExecute(() => IsNotBusy);
 }
Beispiel #11
0
 private void InitPickImageCommand()
 {
     PickImageCommand = new DelegateCommand <object>(OnPickImage);
     PickImageCommand.ObservesCanExecute(() => IsNotBusy);
 }
 private void InitGoToChangePassCommand()
 {
     GoToChangePassCommand = new DelegateCommand <object>(OnGoToChangePass);
     GoToChangePassCommand.ObservesCanExecute(() => IsNotBusyBindProp);
 }
Beispiel #13
0
 private void InitGetListMemberCommand()
 {
     GetListMemberCommand = new DelegateCommand <object>(OnGetListMember);
     GetListMemberCommand.ObservesCanExecute(() => IsNotBusyBindProp);
 }
Beispiel #14
0
 private void InitSelectDiscountCommand()
 {
     SelectDiscountCommand = new DelegateCommand <DiscountDto>(OnSelectDiscount);
     SelectDiscountCommand.ObservesCanExecute(() => IsNotBusy);
 }
Beispiel #15
0
 private void InitUpdateEmployeeCommand()
 {
     UpdateEmployeeCommand = new DelegateCommand <object>(OnUpdateEmployee);
     UpdateEmployeeCommand.ObservesCanExecute(() => IsNotBusy);
 }
 private void InitSelectItemCommand()
 {
     SelectItemCommand = new DelegateCommand <ItemDto>(OnSelectItem);
     SelectItemCommand.ObservesCanExecute(() => IsNotBusy);
 }
 private void InitAddNewItemCommand()
 {
     AddNewItemCommand = new DelegateCommand <object>(OnAddNewItem);
     AddNewItemCommand.ObservesCanExecute(() => IsNotBusy);
 }
 private void InitModifyCategoryCommand()
 {
     SelectCategoryCommand = new DelegateCommand <CategoryDto>(OnSelectCategory);
     SelectCategoryCommand.ObservesCanExecute(() => IsNotBusy);
 }
 private void InitSelectIconCommand()
 {
     SelectIconCommand = new DelegateCommand <string>(OnSelectIcon);
     SelectIconCommand.ObservesCanExecute(() => IsNotBusy);
 }
Beispiel #20
0
 private void InitTranferScrumFrameworkDetailCommand()
 {
     TranferScrumFrameworkDetailCommand = new DelegateCommand <object>(OnTranferScrumFrameworkDetail);
     TranferScrumFrameworkDetailCommand.ObservesCanExecute(() => IsNotBusyBindProp);
 }
 private void InitSelectReasonCommand()
 {
     SelectReasonCommand = new DelegateCommand <object>(OnSelectReason);
     SelectReasonCommand.ObservesCanExecute(() => IsNotBusy);
 }
Beispiel #22
0
 private void InitDeleteTableCommand()
 {
     DeleteTableCommand = new DelegateCommand <TableDto>(OnDeleteTable);
     DeleteTableCommand.ObservesCanExecute(() => IsNotBusy);
 }
 private void InitSaveCommand()
 {
     SaveCommand = new DelegateCommand <object>(OnSave);
     SaveCommand.ObservesCanExecute(() => IsNotBusy);
 }
Beispiel #24
0
 private void InitAddQuantityCommand()
 {
     AddQuantityCommand = new DelegateCommand <ItemDto>(OnAddQuantity);
     AddQuantityCommand.ObservesCanExecute(() => IsNotBusy);
 }
 private void InitStartSessionCommand()
 {
     StartSessionCommand = new DelegateCommand <object>(OnStartSession);
     StartSessionCommand.ObservesCanExecute(() => IsNotBusy);
 }
Beispiel #26
0
 private void InitReduceQuantityCommand()
 {
     ReduceQuantityCommand = new DelegateCommand <ItemDto>(OnReduceQuantity);
     ReduceQuantityCommand.ObservesCanExecute(() => IsNotBusy);
 }
 private void InitOpenPopupCommand()
 {
     OpenPopupCommand = new DelegateCommand <object>(OnOpenPopup);
     OpenPopupCommand.ObservesCanExecute(() => IsNotBusy);
 }
Beispiel #28
0
 private void InitGoBackCommand()
 {
     GoBackCommand = new DelegateCommand <object>(OnGoBack);
     GoBackCommand.ObservesCanExecute(() => IsNotBusy);
 }
 private void InitReturnCommand()
 {
     ReturnCommand = new DelegateCommand <object>(OnReturn);
     ReturnCommand.ObservesCanExecute(() => IsNotBusy);
 }
Beispiel #30
0
 private void InitSignOutCommand()
 {
     SignOutCommand = new DelegateCommand <object>(OnSignOut);
     SignOutCommand.ObservesCanExecute(() => IsNotBusy);
 }