Exemplo n.º 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();
		}
Exemplo n.º 2
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();
 }
Exemplo n.º 3
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();
 }
Exemplo n.º 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;
 }
Exemplo n.º 5
0
 public SubMenuUIContext(MenuUIContext menucontext)
     : base(menucontext.Bar, () => menucontext.Item.Items.AddSeparator(), null, null)
 {
     MenuContext = menucontext;
 }
Exemplo n.º 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;
		}
Exemplo n.º 7
0
		public SubMenuUIContext(MenuUIContext menucontext)
			: base(menucontext.Bar, () => menucontext.Item.Items.AddSeparator(), null, null)
		{
			MenuContext = menucontext;
		}