public void UnloadAddins() { if (m_AddinManager != null) { m_AddinManager.Dispose(); } m_AddinManager = null; m_AddinManager = new AddinManager(m_MainForm, m_VideoController); }