/// <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)); }
/// <summary> /// Triggered after main GUI has loaded but before connection tree has loaded /// This fix also saves plugin context for future use in other events /// </summary> /// <param name="context">The current state of the application</param> /// <param name="xmlNode">The exported SaveSettings() XmlNode of a previous session with additional plugin node wrapping XML</param> public void PreLoad(IPluginContext context, XmlNode xmlNode) { RdcManPluginFix.BeginningOfPreLoadMethod(xmlNode, out xmlNode); pluginContext = context; PreLoadEvent?.Invoke(context, new XmlNodeEventArgs(pluginContext, xmlNode)); }
static PluginFix() { RdcManPluginFix.BeginningOfStaticConstructor(); }