/// <summary> /// Merges the plug-in into the MenuStrip and ToolStrip /// </summary> /// <param name="plugin"><see cref="Plugin"/> to register with the <see cref="Manager"/></param> private void MergePlugin(Plugin plugin) { ToolStrip appMenuStrip = _Controls.GetMenuStrip(plugin.MenuStripName); ToolStrip appToolStrip = _Controls.GetToolStrip(plugin.ToolStripName); MenuStrip ms = plugin.GetMenuStrip(); ToolStrip ts = plugin.GetToolStrip(); plugin.SetOnClickEvent(_OnClick); plugin.OnToolTipChanged = _OnToolTipChanged; if (appMenuStrip != null && ms != null) { bool result = ToolStripManager.Merge(ms, appMenuStrip); } if (appToolStrip != null && ts != null) { bool result = ToolStripManager.Merge(ts, appToolStrip); } }