Advertisement
Guest User

EpgTimer_Program_Jump.diff

a guest
Feb 14th, 2013
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.11 KB | None | 0 0
  1. --- MainWindow.xaml.cs.orig 2013-02-15 13:49:39.511380300 +0900
  2. +++ MainWindow.xaml.cs  2013-02-14 14:13:52.966073100 +0900
  3. @@ -690,14 +691,19 @@
  4.  
  5.          void SearchCmd()
  6.          {
  7. -            SearchWindow search = new SearchWindow();
  8. -            PresentationSource topWindow = PresentationSource.FromVisual(this);
  9. -            if (topWindow != null)
  10. +            if (BlackoutWindow.unvisibleSearchWindow == null)
  11.              {
  12. -                search.Owner = (Window)topWindow.RootVisual;
  13. +                SearchWindow search = new SearchWindow();
  14. +                PresentationSource topWindow = PresentationSource.FromVisual(this);
  15. +                if (topWindow != null)
  16. +                {
  17. +                    search.Owner = (Window)topWindow.RootVisual;
  18. +                }
  19. +                search.SetViewMode(0);
  20. +                search.ShowDialog();
  21.              }
  22. -            search.SetViewMode(0);
  23. -            search.ShowDialog();
  24. +            else
  25. +                BlackoutWindow.unvisibleSearchWindow.ShowDialog();
  26.          }
  27.  
  28.          void closeButton_Click(object sender, RoutedEventArgs e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement