Exemplo n.º 1
0
        public ReasonOperationViewModel(IReasonServices _ReasonServices)
        {
            ReasonServices = _ReasonServices;
            SendState      = NormalStateKey;

            CancelCommand = new DelegateCommand(Cancel);
            _saveCommand  = new DelegateCommand <object>(Save, CanSave);
            confirmExitInteractionRequest = new InteractionRequest <Confirmation>();
        }
Exemplo n.º 2
0
        public ReasonDetailsViewModel(IRegionManager _RegionManager, IReasonServices _ReasonServices)
        {
            RegionManager  = _RegionManager;
            ReasonServices = _ReasonServices;

            EditThisCommand   = new DelegateCommand(EditThis);
            RemoveThisCommand = new DelegateCommand(RemoveThis, CanRemove);
            GoBackCommand     = new DelegateCommand(GoBack);
            confirmRemoveThisInteractionRequest = new InteractionRequest <Confirmation>();
        }
Exemplo n.º 3
0
        public ReasonMainViewModel(IEventAggregator _EventAggregator, IRegionManager _RegionManager, IReasonServices _ReasonServices)
        {
            RegionManager   = _RegionManager;
            ReasonServices  = _ReasonServices;
            EventAggregator = _EventAggregator;
            EventAggregator.GetEvent <AuthenticatedUserEvent>().Subscribe(InitAuthenticatedUser);

            OnLoadedCommand = new DelegateCommand(OnLoaded);

            _saveReasonCommand   = new DelegateCommand <object>(SaveReason);
            _deleteReasonCommand = new DelegateCommand <object>(DeleteReason, CanDelete);
            interactionRequest   = new InteractionRequest <Confirmation>();
        }