Example #1
0
 private void RegisterEvent(ProfileViewModel value)
 {
     var @new = value as INotifyDataErrorInfo;
     if (@new != null)
     {
         @new.ErrorsChanged += OnErrorsChanged;
     }
 }
Example #2
0
 private void UnregisterEvent(ProfileViewModel value)
 {
     var @old = value as INotifyDataErrorInfo;
     if (@old != null)
     {
         @old.ErrorsChanged -= OnErrorsChanged;
     }
 }
Example #3
0
 public MainViewModel()
 {
     SubmitCommand = new DelegateCommand(Submit, CanSubmit);
     Submitter = new NullSubmitter();
     ProfileViewModel = new ProfileViewModel();
 }