private void btnNew_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            this.Hide();

            Thread.Sleep(500);
            //
            // Capture Screen ---------------------------------------------------------
            CaptureScreenWindow CS = new CaptureScreenWindow();

            CS.SetImageSource = ScreenCapture.GetImageStream(new ScreenCapture().CaptureScreen());

            CS.Captured += (s, ea) =>
            {
                Image image = new Image();
                image.Source  = (ImageSource)s;
                image.Stretch = Stretch.Uniform;
                image.Width   = 350;
                image.Height  = 200;

                lstImages.Items.Add(image);
            };

            CS.ShowDialog();
            // ---------------------------------------------------------
            this.Show();
        }
        private void btnNew_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            this.Hide();

            Thread.Sleep(500);
            //
            // Capture Screen ---------------------------------------------------------
            CaptureScreenWindow CS = new CaptureScreenWindow();
            CS.SetImageSource = ScreenCapture.GetImageStream(new ScreenCapture().CaptureScreen());

            CS.Captured += (s, ea) =>
            {
                Image image = new Image();
                image.Source = (ImageSource)s;
                image.Stretch = Stretch.Uniform;
                image.Width = 350;
                image.Height = 200;

                lstImages.Items.Add(image);
            };

            CS.ShowDialog();
            // ---------------------------------------------------------
            this.Show();
        }