Beispiel #1
0
        public void AddExtension(IMyToolbarExtension newExtension)
        {
            if (m_extensions == null)
            {
                m_extensions = new CachingDictionary <Type, IMyToolbarExtension>();
            }

            m_extensions.Add(newExtension.GetType(), newExtension);
            newExtension.AddedToToolbar(this);
        }
Beispiel #2
0
 public void RemoveExtension(IMyToolbarExtension toRemove)
 {
     m_extensions.Remove(toRemove.GetType());
 }