Пример #1
0
        /// <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);
            };
        }
Пример #2
0
 public void OnUndockServer(IUndockedServerForm form)
 {
     throw new System.NotImplementedException();
 }
Пример #3
0
 public void OnUndockServer(IUndockedServerForm form)
 {
 }
Пример #4
0
 /// <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));
 }
Пример #5
0
 public void OnUndockServer(IUndockedServerForm form)
 {
     MessageBox.Show("OnUndockServer", "Plugin.Sample event", MessageBoxButtons.OK, MessageBoxIcon.Information);
 }