public static AsyncDemo Show() { var window = instance as Window; if (window == null) window = instance = new AsyncDemo(); window.Show(); window.Focus(); return instance; }
public static AsyncDemo Show() { var window = instance as Window; if (window == null) { window = instance = new AsyncDemo(); } window.Show(); window.Focus(); return(instance); }
protected override void OnClosed(EventArgs e) { base.OnClosed(e); instance = null; }
private void Button_Click(object sender, RoutedEventArgs e) { AsyncDemo.Show(); }