Beispiel #1
0
 public RoleViewModel(IRoleService roleService, IWindowService windowService, IModalsService modalsService,
                      ITranslationService translationService) : base(translationService)
 {
     _roleService   = roleService;
     _windowService = windowService;
     _modalsService = modalsService;
 }
        public ProfileViewModel(IMvxNavigationService navigation, IAccountProvider accountProvider, IProfileProvider profileProvider, IModalsService modalsService)
        {
            _accountProvider = accountProvider;
            _profileProvider = profileProvider;
            _modalsService   = modalsService;

            _navigation = navigation;

            Started = new MvxObservableCollection <CourseDTO>();
            Tasks   = new MvxObservableCollection <string>();

            ItemSelected = new MvxAsyncCommand <CourseWrapper>(OnClicked);
            RedeemCode   = new MvxAsyncCommand(OpenRedeemCode);

            Account = accountProvider.AccountInfo.AccountDTO;

            ChangePhoto = new MvxAsyncCommand(OpenImageCropper);

            UpdateProfile = new MvxAsyncCommand(ChangeProfile);

            Exit = new MvxAsyncCommand(ExitProgram);
        }
 public AccountProvider(IModalsService modalsServicel, IStorageService storageService)
 {
     _modalsServicel = modalsServicel;
     _storageService = storageService;
 }
Beispiel #4
0
 public ModalSamplesViewModel(IModalsService modalService, IExceptionHandler exceptionHandler)
 {
     _modalService     = modalService;
     _exceptionHandler = exceptionHandler;
 }
 public CustomerViewModel(ICustomerService customerService, IWindowService windowService, IExceptionHandler exceptionHandler, IModalsService modalsService)
 {
     _customerService = customerService;
     _windowService   = windowService;
     _modalsService   = modalsService;
 }