public EdgeBarController(MyAddIn myAddIn) { _myAddIn = myAddIn; _edgeBar = (SolidEdgeFramework.ISolidEdgeBarEx)_myAddIn.AddIn; HookEvents(_myAddIn.AddIn, typeof(SolidEdgeFramework.ISEAddInEdgeBarEvents).GUID); }
public void Dispose(bool disposing) { if (!_disposed) { if (disposing) { Dictionary <IntPtr, EdgeBarPage> .Enumerator enumerator = _edgeBarPageDictionary.GetEnumerator(); while (enumerator.MoveNext()) { RemovePage(enumerator.Current.Value); } _edgeBarPageDictionary.Clear(); } _edgeBarPageDictionary = null; _edgeBar = null; _myAddIn = null; _disposed = true; } }