/// <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); }
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); } }
protected void Initialize(ObjectPropertySettings settings, IObjectPropertyInfo objectInfo) { Initialize(settings, objectInfo, null, null); }
protected void Initialize(ObjectPropertySettings settings, IObjectPropertyInfo objectInfo, object selectedElement) { Initialize(settings, objectInfo, selectedElement, null); }
protected virtual void CloneFrom(ObjectPropertySettings source) { }