public IProjectFile Open() { if (_solutionPropertiesEditor == null) { _solutionPropertiesEditor = new SolutionPropertiesEditor(this); if (_tabItem != null) { _tabItem.Close(); } _tabItem = TabStripItemFactory.CreateTabStripItem(_solutionPropertiesEditor, this); _tabItem.Closed += TabItemClosed; } return this; }
public void Close() { try { _closing = true; if (_tabItem != null) { _tabItem.Close(); _tabItem = null; } if (_solutionPropertiesEditor != null) { _solutionPropertiesEditor.Dispose(); _solutionPropertiesEditor = null; } } finally { _closing = false; } }