public NavigationService(
     ILocalDbService dbService,
     IUserService userService)
 {
     _dbService   = dbService;
     _userService = userService;
 }
 public MyMessagesViewModel(IMyAccountService myAccountService, ILocalDbService localDbService, IDialogService dialogService)
 {
     _myAccountService = myAccountService;
     _localDbService   = localDbService;
     _dialogService    = dialogService;
     MyMessagesList    = new ObservableCollection <MyMessageItemModel>();
 }
 public EbookSubjectViewModel(ILearningService learningService, ILocalDbService localDbService, IDialogService dialogService)
 {
     _learningService = learningService;
     _localDbService  = localDbService;
     _dialogService   = dialogService;
     EbookSubjectList = new ObservableCollection <EbookSubjectItemModel>();
 }
 public EvaluationCategoriesViewModel(IEvaluationService evaluationService, ILocalDbService localDbService, IDialogService dialogService)
 {
     _evaluationService       = evaluationService;
     _localDbService          = localDbService;
     _dialogService           = dialogService;
     EvaluationCategoriesList = new ObservableCollection <EvaluationCategoryItemModel>();
 }
 public ExpertsViewModel(IAskAnExpertService expertService, ILocalDbService localDbService, IDialogService dialogService)
 {
     _expertService  = expertService;
     _localDbService = localDbService;
     _dialogService  = dialogService;
     ExpertsList     = new ObservableCollection <InstructingExpertItemModel>();
 }
Exemplo n.º 6
0
 public CounsellorsViewModel(ICareerCounsellingService careercounsellingService, ILocalDbService localDbService, IDialogService dialogService)
 {
     _careercounsellingService = careercounsellingService;
     _localDbService           = localDbService;
     _dialogService            = dialogService;
     CounsellorsList           = new ObservableCollection <InstructingExpertItemModel>();
 }
 public ExpertDetailViewModel(IAskAnExpertService expertService, ILocalDbService localDbService,
                              IDialogService dialogService, msg_ExpertDetail msg_Detail)
 {
     _expertService               = expertService;
     _localDbService              = localDbService;
     _dialogService               = dialogService;
     _msg_Detail                  = msg_Detail;
     InstructorSubjectsList       = new ObservableCollection <InstructorSubjectItemModel>();
     InstructorSubjectReviewsList = new ObservableCollection <InstructorSubjectReviewItemModel>();
     if (msg_Detail.expert_dto != null)
     {
         Id         = msg_Detail.expert_dto.Id; RaisePropertyChanged(() => Id);
         ImagePath  = msg_Detail.expert_dto.ImagePath; RaisePropertyChanged(() => ImagePath);
         Name       = msg_Detail.expert_dto.Name; RaisePropertyChanged(() => Name);
         Email      = msg_Detail.expert_dto.Email; RaisePropertyChanged(() => Email);
         Phone      = msg_Detail.expert_dto.Phone; RaisePropertyChanged(() => Phone);
         About      = msg_Detail.expert_dto.About; RaisePropertyChanged(() => About);
         Portfolio  = msg_Detail.expert_dto.Portfolio; RaisePropertyChanged(() => Portfolio);
         University = msg_Detail.expert_dto.University; RaisePropertyChanged(() => University);
         Degree     = msg_Detail.expert_dto.Degree; RaisePropertyChanged(() => Degree);
         //IsCounsellor = msg_Detail.expert_dto.IsCounsellor; RaisePropertyChanged(() => IsCounsellor);
         IsExpert = msg_Detail.expert_dto.IsExpert; RaisePropertyChanged(() => IsExpert);
         IsTutor  = msg_Detail.expert_dto.IsTutor; RaisePropertyChanged(() => IsTutor);
     }
 }
Exemplo n.º 8
0
        public SyncViewModel(IWebApiService webApiService, ILocalDbService localDbService)
        {
            this.webApiService  = webApiService;
            this.localDbService = localDbService;

            SyncCommand = new DelegateCommand(SyncCommandExecute);
        }
Exemplo n.º 9
0
        public TeamSelectionViewModel(INavigationService navigationService, ILocalDbService localDbService)
        {
            this.navigationService = navigationService;
            this.localDbService    = localDbService;

            PropertyChanged += TeamSelectionViewModel_PropertyChangedAsync;
        }
 public EvaluationResultViewModel(ILocalDbService localDbService,
                                  IDialogService dialogService, ILocalEvaluationService localEvaluationService, msg_EvaluationResult msgEvaluationResult)
 {
     _localDbService         = localDbService;
     _dialogService          = dialogService;
     _localEvaluationService = localEvaluationService;
     _msgEvaluationResult    = msgEvaluationResult;
 }
 public TakeEvaluationViewModel(IEvaluationService evaluationService, ILocalDbService localDbService,
                                IDialogService dialogService, ILocalEvaluationService localEvaluationService, msg_TakeEvaluation msgTakeEvaluation)
 {
     _evaluationService      = evaluationService;
     _localDbService         = localDbService;
     _dialogService          = dialogService;
     _localEvaluationService = localEvaluationService;
     _msgTakeEvaluation      = msgTakeEvaluation;
 }
Exemplo n.º 12
0
 public EbookCategoryViewModel(ILearningService learningService, ILocalDbService localDbService, IDialogService dialogService,
                               ILocalDbLearningService locallearningService)
 {
     _learningService      = learningService;
     _localDbService       = localDbService;
     _dialogService        = dialogService;
     _locallearningService = locallearningService;
     EbookCategoryList     = new ObservableCollection <EbookCategoryItemModel>();
 }
Exemplo n.º 13
0
 public SurveysViewModel(INavigationService navigationService, ILocalDbService localDbService, IPageDialogService pageDialogService)
 {
     this.navigationService = navigationService;
     this.localDbService    = localDbService;
     this.pageDialogService = pageDialogService;
     surveys             = new ObservableCollection <SurveyViewModel>();
     NewSurveyCommand    = new DelegateCommand(NewSurveyCommandExcecute);
     DeleteSurveyCommand = new DelegateCommand(DeleteSurveyCommandExcecute, DeleteSurveyCommandCanExcecute).ObservesProperty(() => SelectedSurvey);
 }
 public StartEvaluationViewModel(IEvaluationService evaluationService, ILocalDbService localDbService,
                                 IDialogService dialogService, ILocalEvaluationService localEvaluationService, msg_StartEvaluation msgStartEvaluation)
 {
     _evaluationService      = evaluationService;
     _localDbService         = localDbService;
     _dialogService          = dialogService;
     _localEvaluationService = localEvaluationService;
     _msgStartEvaluation     = msgStartEvaluation;
     QuestionOptionsList     = new ObservableCollection <QuestionOptionItemModel>();
 }
        public SurveyDetailsViewModel(INavigationService navigationService, ILocalDbService localDbService = null)
        {
            this.navigationService = navigationService;
            this.localDbService    = localDbService;

            /* Inicializo la fecha */
            Birthdate = DateTime.Today;

            SelectTeamCommand = new DelegateCommand(SelectTeamCommandExecute);
            EndSurveyCommand  = new DelegateCommand(EndSurveyCommandExecute, EndSurveyCommandCanExecute)
                                .ObservesProperty(() => Name)
                                .ObservesProperty(() => Team);
        }
Exemplo n.º 16
0
        public SurveyDetailsViewModel(INavigationService navigationService, IPageDialogService pageDialogService, ILocalDbService localDbService)
        {
            this.navigationService = navigationService;
            this.pageDialogService = pageDialogService;
            this.localDbService    = localDbService;

            SelectTeamCommand = new DelegateCommand(SelectTeamCommandExecute);

            EndSurveyCommand = new DelegateCommand(EndSurveyCommandExecute, EndSurveyCommandCanExecute)
                               .ObservesProperty(() => Name)
                               .ObservesProperty(() => FavoriteTeam)
                               .ObservesProperty(() => BirthDate);
        }
Exemplo n.º 17
0
 public SurveyDetailsViewModel(INavigationService navigationService, IPageDialogService pageDialogService, ILocalDbService localDbService)
 {
     this.navigationService = navigationService;
     this.pageDialogService = pageDialogService;
     this.localDbService    = localDbService;
     //Teams = new ObservableCollection<string>
     //{
     //    "Alianza Lima",
     //    "América",
     //    "River Plate",
     //    "Colo Colo",
     //    "Real Madrid"
     //};
     SelectTeamCommand = new DelegateCommand(SelectCommandExcecute);
     EndSurveyCommand  = new DelegateCommand(EndSurveyCommandExcecute, EndSurveyCommandCanExcecute)
                         .ObservesProperty(() => Name)
                         .ObservesProperty(() => FavoriteTeam);
     //PropertyChanged += SurveyDetailListView_PropertyChanged;
 }
Exemplo n.º 18
0
 public LoginViewModel(ILocalDbService LocalDbService, ILoginService LoginService, IDialogService dialogService)
 {
     _LocalDbService = LocalDbService;
     _LoginService   = LoginService;
     _dialogService  = dialogService;
 }
Exemplo n.º 19
0
 public TabFavoriteViewModel(ILocalDbService localDbService, IMvxNavigationService navigationService)
 {
     this._localDbService    = localDbService;
     this._navigationService = navigationService;
     GetFavoriteData();
 }
Exemplo n.º 20
0
 public DetailJuiceListViewModel(IRecipeService recipeService, ILocalDbService localDbService, ILocalShopListService localShopListService)
 {
     this._recipeService        = recipeService;
     this._localDbService       = localDbService;
     this._localShopListService = localShopListService;
 }
Exemplo n.º 21
0
 public DetailFavoriteViewModel(ILocalDbService localFavService, ILocalShopListService localShopListService)
 {
     this._localFavService      = localFavService;
     this._localShopListService = localShopListService;
 }
 public MockAddressService(ILocalDbService localDb)
 {
     _localDb = localDb;
 }