Example #1
0
 void Close_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     if (CloseVMCommand != null && CloseVMCommand.CanExecute(null))
     {
         CloseVMCommand.Execute(null);
     }
 }
Example #2
0
 private void Close_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = CloseVMCommand != null && CloseVMCommand.CanExecute(null);
 }