Beispiel #1
0
		public override void Unload()
		{
			if ((ClickHandler != null) && (Item != null))
				Item.Click -= ClickHandler;

			if (MenuContext != null)
				MenuContext.Item.Items.Remove(Item);

			Item = null;
			MenuContext = null;
			base.Unload();
		}
 public override void Unload()
 {
     if ((clickHandler != null) && (Item != null))
     {
         Item.Click -= clickHandler;
     }
     if (MenuContext != null)
     {
         MenuContext.Item.Items.Remove(Item);
     }
     Item        = null;
     MenuContext = null;
     base.Unload();
 }
 public override void Unload()
 {
     if ((clickHandler != null) && (Item != null))
     {
         Item.Click -= clickHandler;
     }
     if (MenuContext != null)
     {
         MenuContext.Item.Items.Remove(Item);
     }
     Item = null;
     MenuContext = null;
     base.Unload();
 }
Beispiel #4
0
 public SubMenuUIContext(MenuUIContext menucontext, string caption, EventHandler clickHandler, Image image)
     : base(menucontext.Bar, () => menucontext.Item.Items.AddButton(caption, clickHandler), clickHandler, image)
 {
     MenuContext = menucontext;
 }
Beispiel #5
0
 public SubMenuUIContext(MenuUIContext menucontext)
     : base(menucontext.Bar, () => menucontext.Item.Items.AddSeparator(), null, null)
 {
     MenuContext = menucontext;
 }
Beispiel #6
0
		public SubMenuUIContext(MenuUIContext menucontext, string caption, EventHandler clickHandler, Image image)
			: base(menucontext.Bar, () => menucontext.Item.Items.AddButton(caption, clickHandler), clickHandler, image)
		{
			MenuContext = menucontext;
		}
Beispiel #7
0
		public SubMenuUIContext(MenuUIContext menucontext)
			: base(menucontext.Bar, () => menucontext.Item.Items.AddSeparator(), null, null)
		{
			MenuContext = menucontext;
		}