protected override void Initialize() { ThreadHelper.ThrowIfNotOnUIThread(); //Create Editor Factory base.Initialize(); DTE = GetService(typeof(DTE)) as DTE; graphEditorFactory = new GraphEditorFactory(); RegisterEditorFactory(graphEditorFactory); }
/// <summary> /// Releases the resources used by the Package object. /// </summary> /// <param name="disposing">This parameter determines whether the method has been called directly or indirectly by a user's code.</param> protected override void Dispose(bool disposing) { try { Debug.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering Dispose() of: {0}", ToString())); if (disposing) { if (graphEditorFactory != null) { graphEditorFactory.Dispose(); graphEditorFactory = null; } GC.SuppressFinalize(this); } } finally { base.Dispose(disposing); } }