コード例 #1
0
 public void SetGlobalHandler(IMenuStripManagerHandler globalHandler)
 {
     if (this.globalHandler != null)
     {
         Debug.Assert(false);
         throw new InvalidOperationException();
     }
     this.globalHandler = globalHandler;
 }
コード例 #2
0
 public void SetActiveHandler(IMenuStripManagerHandler activeHandler)
 {
     if (activeHandler == null)
     {
         this.activeHandler = null;
     }
     else
     {
         if (this.activeHandler != null)
         {
             Debug.Assert(false);
             throw new InvalidOperationException();
         }
         this.activeHandler = activeHandler;
     }
 }