예제 #1
0
        public MainListPageViewModel(INavigationService navigationService,
                                     IAuthorizationService authorization,
                                     IRepository <Profile> repository,
                                     IProfileSort profileSort)
        {
            _navigationService = navigationService;
            _authorization     = authorization;
            _repository        = repository;
            _profileSort       = profileSort;

            InitTable();
        }
예제 #2
0
 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;
 }