public void SetGlobalHandler(IMenuStripManagerHandler globalHandler) { if (this.globalHandler != null) { Debug.Assert(false); throw new InvalidOperationException(); } this.globalHandler = globalHandler; }
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; } }