public MainPageModel( TimerPageModel timerPageModel, ProfilePageModel profilePM, ViewAllPageModel viewAllPm) { ProfilePageModel = profilePM; ViewAllPageModel = viewAllPm; TimerPageModel = timerPageModel; }
public ProfilePageModel( IAccountService accountService, ITrackedPeriodService trackedPeriodService, INavigationService navigationService, ViewAllPageModel viewAllPageModel, TimerPageModel timerPageModel) { this.accountService = accountService; this.trackedPeriodService = trackedPeriodService; this.navigationService = navigationService; this.viewAllPageModel = viewAllPageModel; this.timerPageModel = timerPageModel; UsernameEntryViewModel = new LoginEntryViewModel("username", isPassword: false); PasswordEntryViewModel = new LoginEntryViewModel("password", isPassword: true); UpdatePasswordButtonViewModel = new ButtonViewModel("update password", OnUpdatePasswordButtonPressed); ClearUserDataButtonViewModel = new ButtonViewModel("clear data", OnClearDataButtonPressed); LogOutButtonViewModel = new ButtonViewModel("log out", OnLogOutButtonPressed); }