/// <summary> /// Must be called at the beginning of the OnUndockServer method of plugin /// Fixes OnDockServer method so it's called when an undocked server's window is closed /// </summary> /// <param name="plugin">The current plugin using this method (Pass 'this')</param> /// <param name="undockedServerForm">Form which is passed to the OnUndockServer method</param> public static void BeginningOfOnUndockServer(IPlugin plugin, IUndockedServerForm undockedServerForm) { Form form = undockedServerForm as Form; form.FormClosed += (s, a) => { plugin.OnDockServer(undockedServerForm.Server); }; }
public void OnUndockServer(IUndockedServerForm form) { throw new System.NotImplementedException(); }
public void OnUndockServer(IUndockedServerForm form) { }
/// <summary> /// Triggered when user selects undock on server to pop it out to a new window /// </summary> /// <param name="form">Information about what server was undocked and the window that was created for it</param> public void OnUndockServer(IUndockedServerForm form) { RdcManPluginFix.BeginningOfOnUndockServer(this, form); OnUndockServerEvent?.Invoke(form.Server, new MenuStripEventArgs(pluginContext, form.MainMenuStrip)); }
public void OnUndockServer(IUndockedServerForm form) { MessageBox.Show("OnUndockServer", "Plugin.Sample event", MessageBoxButtons.OK, MessageBoxIcon.Information); }