コード例 #1
0
 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;
 }
コード例 #2
0
 public void Close()
 {
     try
     {
         _closing = true;
         if (_tabItem != null)
         {
             _tabItem.Close();
             _tabItem = null;
         }
         if (_solutionPropertiesEditor != null)
         {
             _solutionPropertiesEditor.Dispose();
             _solutionPropertiesEditor = null;
         }
     }
     finally
     {
         _closing = false;
     }
 }