Exemplo n.º 1
0
        public override void OnMainMenuItemClick()
        {
            base.OnMainMenuItemClick();

            AddonForm form = new AddonForm();

            if (form.ShowDialog(ApplicationData.MainForm) == DialogResult.OK)
            {
                if (addItemToMainMenu)
                {
                    AddItemToMainMenu();
                }
                else
                {
                    RemoveItemFromMainMenu();
                }

                if (addButtonToToolbar)
                {
                    AddButtonToToolbar();
                }
                else
                {
                    RemoveButtonFromToolbar();
                }
            }
        }
		public override void OnMainMenuItemClick()
		{
			base.OnMainMenuItemClick();

			AddonForm form = new AddonForm();
			if( form.ShowDialog( ApplicationData.MainForm ) == DialogResult.OK )
			{
				if( addItemToMainMenu )
					AddItemToMainMenu();
				else
					RemoveItemFromMainMenu();

				if( addButtonToToolbar )
					AddButtonToToolbar();
				else
					RemoveButtonFromToolbar();
			}
		}