Exemplo n.º 1
0
 public void OnWindowClosing(object sender, CancelEventArgs e)
 {
     if (this == window)
     {
         window = null;
     }
 }
Exemplo n.º 2
0
        private void OpenThemesEdit(object sender, RoutedEventArgs e)
        {
            if (ThemesWindow.window != null)
            {
                return;
            }
            ThemesWindow themesWindow = new ThemesWindow();

            themesWindow.Show();
        }
Exemplo n.º 3
0
 public ThemesWindow()
 {
     if (window != null)
     {
         Close();
         return;
     }
     InitializeComponent();
     window   = this;
     Closing += OnWindowClosing;
 }