public SettingsListViewModel(BaseViewModel parent) : base(parent)
 {
     Account    = FindAncestor <MainWindowViewModel>()?.CurrentAccount;
     HasAccount = Account != null;
     if (HasAccount)
     {
         Account.PropertyChanged += new WeakEventHandler <PropertyChangedEventArgs>(Account_PropertyChanged).Handler;
         UpdateFromAccount();
     }
     _pagedViewModel = FindAncestor <PagedViewModel>();
 }
Exemple #2
0
 public SettingsListViewModel(BaseViewModel parent) : base(parent)
 {
     Account    = FindAncestor <MainScreenViewModel>()?.CurrentAccount;
     HasAccount = Account != null;
     if (HasAccount)
     {
         Account.PropertyChanged += Account_PropertyChanged;
         UpdateFromAccount();
     }
     _pagedViewModel = FindAncestor <PagedViewModel>();
 }