Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- MainWindow.xaml.cs.orig 2013-02-15 13:49:39.511380300 +0900
- +++ MainWindow.xaml.cs 2013-02-14 14:13:52.966073100 +0900
- @@ -690,14 +691,19 @@
- void SearchCmd()
- {
- - SearchWindow search = new SearchWindow();
- - PresentationSource topWindow = PresentationSource.FromVisual(this);
- - if (topWindow != null)
- + if (BlackoutWindow.unvisibleSearchWindow == null)
- {
- - search.Owner = (Window)topWindow.RootVisual;
- + SearchWindow search = new SearchWindow();
- + PresentationSource topWindow = PresentationSource.FromVisual(this);
- + if (topWindow != null)
- + {
- + search.Owner = (Window)topWindow.RootVisual;
- + }
- + search.SetViewMode(0);
- + search.ShowDialog();
- }
- - search.SetViewMode(0);
- - search.ShowDialog();
- + else
- + BlackoutWindow.unvisibleSearchWindow.ShowDialog();
- }
- void closeButton_Click(object sender, RoutedEventArgs e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement