public static void ShowInstance()
        {
            if (_instance == null)
            {
                _instance = new TranslationWindow();

                _instance.Closed += (S, E) => _instance = null;
            }

            _instance.ShowAndFocus();
        }
Beispiel #2
0
 void Translate(object Sender, RoutedEventArgs E)
 {
     TranslationWindow.ShowInstance();
 }
Beispiel #3
0
        private void AddTranslationButton_Click(object sender, RoutedEventArgs e)
        {
            TranslationWindow subwindow = new TranslationWindow();

            subwindow.Show();
        }