diff SilverlightValidation/SilverlightValidation.PL/ViewModels/UserViewModel.cs @ 106:62477c2e8837

Command tests
author stevenhollidge <stevenhollidge@hotmail.com>
date Sun, 06 May 2012 13:00:46 +0100
parents db05a55e3536
children
line wrap: on
line diff
--- a/SilverlightValidation/SilverlightValidation.PL/ViewModels/UserViewModel.cs	Sun May 06 12:32:35 2012 +0100
+++ b/SilverlightValidation/SilverlightValidation.PL/ViewModels/UserViewModel.cs	Sun May 06 13:00:46 2012 +0100
@@ -168,8 +168,7 @@
             if (IsChanged && !HasErrors)
             {
                 // save here
-                Messenger.Default.Send<UserViewResponseMessage>(
-                    new UserViewResponseMessage() { UserViewModel = this });
+                Messenger.Default.Send(new UserViewResponseMessage() { UserViewModel = this });
             }
         }
 
@@ -184,8 +183,7 @@
 
         private void CancelCommandExecute(object obj)
         {
-            Messenger.Default.Send<UserViewResponseMessage>(
-                new UserViewResponseMessage() { UserViewModel = null });
+            Messenger.Default.Send(new UserViewResponseMessage() { UserViewModel = null });
         }
         
         #endregion