protected virtual void Dispose(bool disposing) { if (this._disposed) { return; } if (disposing && this._dataChildren != null) { foreach (DictionaryEntry dictionaryEntry in this._dataChildren) { DesignerItemAutomationPeer itemAutomationPeer = dictionaryEntry.Value as DesignerItemAutomationPeer; if (itemAutomationPeer != null) { itemAutomationPeer.Dispose(); } } } this._item = (ModelItem)null; this._view = (DesignerView)null; this._dataChildren = (Hashtable)null; this._viewPeer = (DesignerViewAutomationPeer)null; this._modelService = (ModelService)null; this._disposed = true; }
public DesignerItemAutomationPeer(ModelItem item, DesignerViewAutomationPeer peer) { this._item = item; this._view = peer.View; this._viewPeer = peer; }