public MainListPageViewModel(INavigationService navigationService, IAuthorizationService authorization, IRepository <Profile> repository, IProfileSort profileSort) { _navigationService = navigationService; _authorization = authorization; _repository = repository; _profileSort = profileSort; InitTable(); }
public SettingsPageViewModel(IProfileSort profileSort, INavigationService navigationService) { _profileSort = profileSort; if (_profileSort.SaveSelectSort == "By nick name") { IsNickName = true; } if (_profileSort.SaveSelectSort == "By name") { IsName = true; } if (_profileSort.SaveSelectSort == "By date") { IsDate = true; } _navigationService = navigationService; }