Example #1
0
 public void DispatchSolutionUnload(SolutionEventArgs e)
 {
     CurrentSolution.Dispose();
     CurrentSolution = null;
     if (SolutionUnload != null)
         SolutionUnload(this, e);
 }
 private void _extensionHost_SolutionUnload(object sender, SolutionEventArgs e)
 {
     _solution = null;
     mainTreeView.Nodes.Clear();
 }
Example #3
0
 public void DispatchSolutionLoad(SolutionEventArgs e)
 {
     CurrentSolution = e.TargetSolution;
     if (SolutionLoad != null)
         SolutionLoad(this, e);
 }
 private void _extensionHost_SolutionLoad(object sender, SolutionEventArgs e)
 {
     _solution = _extensionHost.CurrentSolution;
     _solution.Settings.StartupProjects.InsertedItem += StartupProjects_Changed;
     _solution.Settings.StartupProjects.RemovedItem += StartupProjects_Changed;
     contextMenuStrip1.Renderer = _extensionHost.ControlManager.MenuRenderer;
     mainTreeView.Nodes.Add(new SolutionNode(_solution, _iconProvider));
 }