private void UpdateWindow() { Application.Current.Dispatcher.Invoke(() => { foreach (Window w in Application.Current.Windows) { VSWindowWrapper ww = VSMainWindowWrapper.Create(w, Settings); if (ww == null) { ww = VSFloatingWindowWrapper.Create(w, Settings); } if (ww != null) { Windows.Add(ww); ww.Closed += OnWindowClosed; ww.Tilte = SolutionName; } } }); }
private void OnWindowClosed(VSWindowWrapper obj) { Windows.Remove(obj); }