コード例 #1
0
 public static void RemoveCommandBindingFactory(CommandBindingFactory factory)
 {
     if (factory == null) { throw new ArgumentNullException("factory"); }
     if (!factories.Remove(factory))
     {
         throw new ArgumentException("The factory to remove wasn't found.");
     }
 }
コード例 #2
0
 public static void AddCommandBindingFactory(CommandBindingFactory factory)
 {
     if (factory == null) { throw new ArgumentNullException("factory"); }
     factories.Add(factory);
 }