public static void Display() { if (singleton == null) { singleton = new RegExHelpDialog(); } singleton.Show(); singleton.Focus(); }
void RegExHelp(object sender, RoutedEventArgs e) => RegExHelpDialog.Display();
protected override void OnClosed(System.EventArgs e) { base.OnClosed(e); singleton = null; }