Ejemplo n.º 1
0
 private void ContactListViewModelPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == nameof(ContactListViewModel.SelectedContact))
     {
         selectContactCommand.RaiseCanExecuteChanged();
     }
     else if (e.PropertyName == nameof(ContactListViewModel.FilterText))
     {
         contactsView.Update();
     }
 }
Ejemplo n.º 2
0
 private void EmailListViewModelPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == nameof(EmailListViewModel.SelectedEmail))
     {
         EmailViewModel.Email = EmailListViewModel.SelectedEmail;
         deleteEmailCommand.RaiseCanExecuteChanged();
     }
     else if (e.PropertyName == nameof(EmailListViewModel.FilterText))
     {
         emailsView.Update();
     }
 }