public DetailDataListViewModel(IDialogBus dialogBus, IProgressPresenter progressPresenter, IDetailDataListUseCase detailDataListUseCase) :
     base(dialogBus, progressPresenter)
 {
     _detailDataListUseCase = detailDataListUseCase;
     DetailDataListCommand  = new DelegateCommand(ExecuteDetailDataListCommand);
     UserDetailDataList     = new ObservableCollection <UserDetailData>();
 }
Example #2
0
 public GetCurrentDateTimeViewModel(IDialogBus dialogBus
                                    , IProgressPresenter progressPresenter
                                    , IGetCurrentDateTimeUseCase getCurrentDateTimeUseCase) :
     base(dialogBus, progressPresenter)
 {
     _getCurrentDateTimeUseCase = getCurrentDateTimeUseCase;
     _isSuccess = true;
     GetCurrentDateTimeCommand = new DelegateCommand(ExecuteGetCurrentDateTimeUseCase);
 }
Example #3
0
        public ShellViewModel(IDialogBus dialogBus, IProgressPresenter progressPresenter, IContentNavigator <ViewType> contentNavigator) :
            base(dialogBus, progressPresenter)
        {
            _contentNavigator = contentNavigator;
            var menus = Enum.GetValues(typeof(ViewType))
                        .OfType <ViewType>()
                        .Select(x => new MenuItem(x));

            MenuItems           = new ObservableCollection <MenuItem>(menus);
            SelectedMenuCommand = new DelegateCommand(() => _contentNavigator.Navigate(SelectedMenuItem.ViewType));

            LoadedCommand = new DelegateCommand(() => _contentNavigator.Navigate(ViewType.GetCurrentDateTime));
        }
 protected AppViewModelBase(IDialogBus dialogBus, IProgressPresenter progressPresenter)
 {
     DialogBus         = dialogBus;
     ProgressPresenter = progressPresenter;
 }