Example #1
0
        void Components_ComponentRemoved(object sender, MarcidiaComponentEventArgs e)
        {
            if (!shuttingDown)
            {
                IDisposable disposable = e.Component as IDisposable;

                if (disposable != null)
                    disposable.Dispose();
            }
        }
Example #2
0
 void Components_ComponentAdded(object sender, MarcidiaComponentEventArgs e)
 {
     if (initialized)
         e.Component.Initialize();
 }