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

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

            instance = null;
        }