Exemplo n.º 1
0
        private void ManageFavorites_Click(object sender, RoutedEventArgs e)
        {
            // Open the favorites window.
            var manageFavoritesWindow = new ManageFavoritesWindow();

            manageFavoritesWindow.Owner = this;
            manageFavoritesWindow.ShowDialog();
            LoadFavorites();
        }
Exemplo n.º 2
0
        private void mnuManageFavorites_Click(object sender, RoutedEventArgs e)
        {
            // Display manage favorites window.
            ApplicationOptions.BlurWindows();
            var manageFavoritesWindow = new ManageFavoritesWindow();

            manageFavoritesWindow.Owner = this;
            manageFavoritesWindow.ShowDialog();
            RefreshFavorites();

            ApplicationOptions.RemoveBlurWindows();
        }
Exemplo n.º 3
0
 private void mnuManageFavorites_Click(object sender, RoutedEventArgs e)
 {
     if (ManageFavoritesWindow.openWindow == null)
     {
         // Open the favorites window.
         var manageFavoritesWindow = new ManageFavoritesWindow();
         manageFavoritesWindow.Owner = this;
         manageFavoritesWindow.ShowDialog();
         LoadFavorites();
     }
     else
     {
         // Favorites window is already open.  Activate it.
         ManageFavoritesWindow.openWindow.Activate();
     }
 }
Exemplo n.º 4
0
 private void Window_Closed(object sender, EventArgs e)
 {
     openWindow = null;
 }
Exemplo n.º 5
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     openWindow = this;
 }