Exemplo n.º 1
0
 protected ViewModelBase()
 {
     base.\u002Ector();
     this._settings             = (IApplicationSettings)Mvx.get_IoCProvider().Resolve <IApplicationSettings>();
     this._navigationService    = (IMvxNavigationService)Mvx.get_IoCProvider().Resolve <IMvxNavigationService>();
     this._textProvider         = (IMvxTextProvider)Mvx.get_IoCProvider().Resolve <IMvxTextProvider>();
     this._userDialogs          = (IUserDialogs)Mvx.get_IoCProvider().Resolve <IUserDialogs>();
     this._modalDialog          = (IModalDialog)Mvx.get_IoCProvider().Resolve <IModalDialog>();
     this._connectivity         = (IConnectivity)Mvx.get_IoCProvider().Resolve <IConnectivity>();
     this._singleNavigation     = (ISingleNavigation)Mvx.get_IoCProvider().Resolve <ISingleNavigation>();
     this._profileDataService   = (IProfileDataService)Mvx.get_IoCProvider().Resolve <IProfileDataService>();
     this._profileDbDataService = (IProfileDbDataService)Mvx.get_IoCProvider().Resolve <IProfileDbDataService>();
     this._formsViewPresenter   = (IMvxFormsViewPresenter)Mvx.get_IoCProvider().Resolve <IMvxFormsViewPresenter>();
 }
Exemplo n.º 2
0
 public AuthDbDataService()
 {
     this._mobileApi                  = (IDbMobileApi)Mvx.get_IoCProvider().Resolve <IDbMobileApi>();
     this._tokenValidator             = (ITokenValidatorDb)Mvx.get_IoCProvider().Resolve <ITokenValidatorDb>();
     this._messenger                  = (IMvxMessenger)Mvx.get_IoCProvider().Resolve <IMvxMessenger>();
     this._secureStore                = (ISecureStore)Mvx.get_IoCProvider().Resolve <ISecureStore>();
     this._profileDataService         = (IProfileDbDataService)Mvx.get_IoCProvider().Resolve <IProfileDbDataService>();
     this._absenceDataService         = (IAbsenceDbDataService)Mvx.get_IoCProvider().Resolve <IAbsenceDbDataService>();
     this._evaluationDataService      = (IEvaluationDataService)Mvx.get_IoCProvider().Resolve <IEvaluationDataService>();
     this._noteDataService            = (INoteDbDataService)Mvx.get_IoCProvider().Resolve <INoteDbDataService>();
     this._lessonDataService          = (ILessonDataService)Mvx.get_IoCProvider().Resolve <ILessonDataService>();
     this._subjectAverageDataService  = (ISubjectAverageDataService)Mvx.get_IoCProvider().Resolve <ISubjectAverageDataService>();
     this._studentDataService         = (IStudentDataService)Mvx.get_IoCProvider().Resolve <IStudentDataService>();
     this._eventDataService           = (IEventDataService)Mvx.get_IoCProvider().Resolve <IEventDataService>();
     this._teacherHomeWorkDataService = (ITeacherHomeWorkDataService)Mvx.get_IoCProvider().Resolve <ITeacherHomeWorkDataService>();
     this._studentHomeWorkDataService = (IStudentHomeWorkDataService)Mvx.get_IoCProvider().Resolve <IStudentHomeWorkDataService>();
     this._cacheDataService           = (ICacheDataService)Mvx.get_IoCProvider().Resolve <ICacheDataService>();
     this._uzenetDataService          = (IUzenetDataService)Mvx.get_IoCProvider().Resolve <IUzenetDataService>();
     this._examDataService            = (IExamDataService)Mvx.get_IoCProvider().Resolve <IExamDataService>();
     this._instituteDataService       = (IInstituteDataService)Mvx.get_IoCProvider().Resolve <IInstituteDataService>();
 }