public static AsyncDemo Show()
        {
            var window = instance as Window;
            if (window == null)
                window = instance = new AsyncDemo();

            window.Show();
            window.Focus();
            return instance;
        }
Exemple #2
0
        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();
 }
Exemple #5
0
        protected override void OnClosed(EventArgs e)
        {
            base.OnClosed(e);

            instance = null;
        }