private void NavigateToGroupsPage(Faculty faculty) { if (!_applicationSettings.IsRegistrationCompleted) { _applicationSettings.Me.Faculty = faculty; _applicationSettings.Save(); } if (_reason == Reason.ChangeDefault) { _applicationSettings.Me.TemporaryFaculty = faculty; } _navigationFlow.FacultyId = faculty.Id; _navigationFlow.FacultyName = faculty.Title; _navigationFlow.IsTeacher = false; _navigation.NavigateTo <GroupPageViewModel, NavigationFlow>(_navigationFlow); }
private void NavigateToFaculties(University university) { if (!_applicationSettings.IsRegistrationCompleted) { _applicationSettings.Me.University = university; _applicationSettings.Save(); } if (_reason == Reason.ChangeDefault) { _applicationSettings.Me.TemporaryUniversity = university; } var facultyParameter = new NavigationFlow { UniversityId = university.Id, Reason = _reason, UniversityName = university.ShortName }; _navigation.NavigateTo <FacultiesPageViewModel, NavigationFlow>(facultyParameter); }
private void SaveUserRoleAndNavigateToNextPage(UserRole role) { _applicationSettings.Me.Role = role; _navigation.NavigateTo <UniversitiesPageViewModel, Reason>(Reason.Registration); }