public InstanceManager(PluginGuiContainer pluginGuiContainer) { this.pluginGuiContainer = pluginGuiContainer; Ready = pluginGuiContainer.Ready; thread = new Thread(new ThreadStart(() => { Application.EnableVisualStyles(); Application.Run(pluginGuiContainer); })); thread.SetApartmentState(ApartmentState.STA); thread.IsBackground = true; thread.Start(); }
public InstanceHelper(PluginGuiContainer container, string extraName) { PluginGuiContainer = container; this.extraName = extraName; }