示例#1
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }

                if (m_settings != null)
                {
                    m_settings.Refresh -= new EventHandler(m_settings_Refresh);
                    m_settings          = null;
                }

                // Dispose of all repositories that support IDisposable (the manager may not have taken
                // care of all of them).

                m_selectedElement = null;

                TreeView.ClearTagsRecursive(tvwElements.Nodes);
            }

            base.Dispose(disposing);
        }
示例#2
0
 protected void Initialize(ObjectPropertySettings settings, IObjectPropertyInfo objectInfo, object selectedElement, string iconResource)
 {
     objectInfo.Settings                  = settings;
     propertySheet.Settings               = settings;
     propertySheet.ObjectInfo             = objectInfo;
     propertySheet.InitialSelectedElement = selectedElement;
     if (iconResource != null)
     {
         SetIcon(iconResource);
     }
 }
示例#3
0
 protected void Initialize(ObjectPropertySettings settings, IObjectPropertyInfo objectInfo)
 {
     Initialize(settings, objectInfo, null, null);
 }
示例#4
0
 protected void Initialize(ObjectPropertySettings settings, IObjectPropertyInfo objectInfo, object selectedElement)
 {
     Initialize(settings, objectInfo, selectedElement, null);
 }
示例#5
0
 protected virtual void CloneFrom(ObjectPropertySettings source)
 {
 }