예제 #1
0
 protected void UnregisterCommand(INotifyCanExecuteChanged cmd)
 {
     if (commands.Contains(cmd))
     {
         commands.Remove(cmd);
     }
 }
예제 #2
0
 protected void RegisterCommand(INotifyCanExecuteChanged cmd)
 {
     if (commands.Contains(cmd))
     {
         return;
     }
     commands.Add(cmd);
 }