コード例 #1
0
ファイル: ObjectPropertySheet.cs プロジェクト: formist/LinkMe
        /// <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)
 {
 }