public static void ShowInstance() { if (_instance == null) { _instance = new TranslationWindow(); _instance.Closed += (S, E) => _instance = null; } _instance.ShowAndFocus(); }
void Translate(object Sender, RoutedEventArgs E) { TranslationWindow.ShowInstance(); }
private void AddTranslationButton_Click(object sender, RoutedEventArgs e) { TranslationWindow subwindow = new TranslationWindow(); subwindow.Show(); }