Example #1
0
        public RegisterUserViewModel(IMvxNavigationService mvxNavigation, ISubjectOfInterestModelList subjectsOfInterestModel, ISubjectOfInterestModel subjectOfInterestModel, IApiHelper apiHelper, IUserRegistrationTrModel registrationTrModel)
        {
            this._apiHelper           = apiHelper;
            this._registrationTrModel = registrationTrModel;
            Passport = GetImage(Resources.Female_Icon, Passport);

            OperatingSystem operatingSystem = Environment.OSVersion;

            Upload = new MvxCommand(UploadCommand);
            Remove = new MvxCommand(RemoveSelectedSubjectCommand);/*MvxAsyncCommand*/
            this._mvxNavigation          = mvxNavigation;
            this._subjectsOfInterest     = subjectsOfInterestModel;
            this._subjectOfInterestModel = subjectOfInterestModel;

            Task.Run(() => GetSubjectOfInterest()).Wait();

            SubjectsAndNotes = new BindingList <SubjectOfInterestModel>(_subjectsOfInterest.SubjectOfInterestModels);
        }
Example #2
0
 public ApiHelper(ILoggedInUserModel loggedInUser, ISubjectOfInterestModelList subjectsOfInterest)
 {
     InitializeClient();
     _loggedInUser            = loggedInUser;
     this._subjectsOfInterest = subjectsOfInterest;
 }