protected override void Dispose(bool disposing) { if (sc != null) { (sc as IDisposable).Dispose(); sc = null; } if (!VstContainer.IsPlayerStopped) Action_PlayerDestroy(); KillThread(); if (PluginManager.ActivePlugin != null) if (PluginManager.ActivePlugin.HasEditorDialog) PluginManager.ActivePlugin.EditorDestroy(); PluginManager.ReleaseAllPlugins(); foreach (Control c in ChildrenControls) c.Dispose(); ChildrenControls.Clear(); if (disposing) { if (components != null) { components.Dispose(); } } base.Dispose(disposing); }
public ModestForm(IList<MasterViewContainer> tasks) { sc = new SplashFormController(this, Icons._2012_09_04_csmidi, true); this.InitializeComponent(); this.InitializeModestForm(tasks); }