void Components_ComponentRemoved(object sender, MarcidiaComponentEventArgs e) { if (!shuttingDown) { IDisposable disposable = e.Component as IDisposable; if (disposable != null) disposable.Dispose(); } }
void Components_ComponentAdded(object sender, MarcidiaComponentEventArgs e) { if (initialized) e.Component.Initialize(); }