Example #1
0
 private void ApplicationStateService_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (ExtractMemberName(() => ApplicationStateService.CurrentUser) == e.PropertyName)
     {
         OnPropertyChanged(() => CurrentUsername);
         OnPropertyChanged(() => CanLogin);
         OnPropertyChanged(() => CanLogout);
         LoginCommand.RaiseCanExecuteChanged();
         LogoutCommand.RaiseCanExecuteChanged();
         UploadCommand.RaiseCanExecuteChanged();
     }
 }
Example #2
0
 private void OnTargetUpdated(Object sender, EventArgs e)
 {
     UploadCommand.RaiseCanExecuteChanged();
 }