Esempio n. 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;
        }
Esempio n. 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);
 }
Esempio n. 6
0
 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);
 }
Esempio n. 9
0
 private void InitMinusQuantityCommand()
 {
     MinusQuantityCommand = new DelegateCommand <object>(OnMinusQuantity);
     MinusQuantityCommand.ObservesCanExecute(() => IsNotBusy);
 }
Esempio n. 10
0
 private void InitSelectZoneCommand()
 {
     SelectZoneCommand = new DelegateCommand <ZoneDto>(OnSelectZone);
     SelectZoneCommand.ObservesCanExecute(() => IsNotBusy);
 }
Esempio n. 11
0
 private void InitPickImageCommand()
 {
     PickImageCommand = new DelegateCommand <object>(OnPickImage);
     PickImageCommand.ObservesCanExecute(() => IsNotBusy);
 }
Esempio n. 12
0
 private void InitGoToChangePassCommand()
 {
     GoToChangePassCommand = new DelegateCommand <object>(OnGoToChangePass);
     GoToChangePassCommand.ObservesCanExecute(() => IsNotBusyBindProp);
 }
Esempio n. 13
0
 private void InitGetListMemberCommand()
 {
     GetListMemberCommand = new DelegateCommand <object>(OnGetListMember);
     GetListMemberCommand.ObservesCanExecute(() => IsNotBusyBindProp);
 }
Esempio n. 14
0
 private void InitSelectDiscountCommand()
 {
     SelectDiscountCommand = new DelegateCommand <DiscountDto>(OnSelectDiscount);
     SelectDiscountCommand.ObservesCanExecute(() => IsNotBusy);
 }
Esempio n. 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);
 }
Esempio n. 20
0
 private void InitTranferScrumFrameworkDetailCommand()
 {
     TranferScrumFrameworkDetailCommand = new DelegateCommand <object>(OnTranferScrumFrameworkDetail);
     TranferScrumFrameworkDetailCommand.ObservesCanExecute(() => IsNotBusyBindProp);
 }
Esempio n. 21
0
 private void InitSelectReasonCommand()
 {
     SelectReasonCommand = new DelegateCommand <object>(OnSelectReason);
     SelectReasonCommand.ObservesCanExecute(() => IsNotBusy);
 }
Esempio n. 22
0
 private void InitDeleteTableCommand()
 {
     DeleteTableCommand = new DelegateCommand <TableDto>(OnDeleteTable);
     DeleteTableCommand.ObservesCanExecute(() => IsNotBusy);
 }
Esempio n. 23
0
 private void InitSaveCommand()
 {
     SaveCommand = new DelegateCommand <object>(OnSave);
     SaveCommand.ObservesCanExecute(() => IsNotBusy);
 }
Esempio n. 24
0
 private void InitAddQuantityCommand()
 {
     AddQuantityCommand = new DelegateCommand <ItemDto>(OnAddQuantity);
     AddQuantityCommand.ObservesCanExecute(() => IsNotBusy);
 }
 private void InitStartSessionCommand()
 {
     StartSessionCommand = new DelegateCommand <object>(OnStartSession);
     StartSessionCommand.ObservesCanExecute(() => IsNotBusy);
 }
Esempio n. 26
0
 private void InitReduceQuantityCommand()
 {
     ReduceQuantityCommand = new DelegateCommand <ItemDto>(OnReduceQuantity);
     ReduceQuantityCommand.ObservesCanExecute(() => IsNotBusy);
 }
 private void InitOpenPopupCommand()
 {
     OpenPopupCommand = new DelegateCommand <object>(OnOpenPopup);
     OpenPopupCommand.ObservesCanExecute(() => IsNotBusy);
 }
Esempio n. 28
0
 private void InitGoBackCommand()
 {
     GoBackCommand = new DelegateCommand <object>(OnGoBack);
     GoBackCommand.ObservesCanExecute(() => IsNotBusy);
 }
 private void InitReturnCommand()
 {
     ReturnCommand = new DelegateCommand <object>(OnReturn);
     ReturnCommand.ObservesCanExecute(() => IsNotBusy);
 }
Esempio n. 30
0
 private void InitSignOutCommand()
 {
     SignOutCommand = new DelegateCommand <object>(OnSignOut);
     SignOutCommand.ObservesCanExecute(() => IsNotBusy);
 }