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

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

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

            subwindow.Show();
        }