public override void Dispose()
 {
     if (contextMenu != null)
     {
         contextMenu.Dispose();
         contextMenu = null;
     }
     base.Dispose();
 }
示例#2
0
 public override void Dispose()
 {
     foreach (IActionContainer container in GetContainers())
     {
         container.Dispose();
     }
     if (contextMenu != null)
     {
         contextMenu.Dispose();
         contextMenu = null;
     }
     base.Dispose();
 }
 //B157146, B157117
 public override void Dispose()
 {
     if (ToolBar != null)
     {
         ToolBar.Dispose();
         ToolBar = null;
     }
     if (contextMenu != null)
     {
         contextMenu.Dispose();
         contextMenu = null;
     }
     base.Dispose();
 }
示例#4
0
 //B157146, B157117
 public override void Dispose()
 {
     if (ToolBar != null)
     {
         ToolBar.MenuItemsCreated -= new EventHandler(ToolBar_MenuItemsCreated);
         ToolBar.Dispose();
         ToolBar = null;
     }
     if (contextMenu != null)
     {
         contextMenu.Dispose();
         contextMenu = null;
     }
     base.Dispose();
 }