public void Capturing()
        {
            Dispatcher.Invoke(new Action(() =>
            {
                if (twin == null)
                {
                    twin = new transparentWin();
                }

                twin.Topmost = true;
                twin.Activate();
                twin.Show();
                this.Hide();
            }));
        }
        public void Capturing()
        {
            Dispatcher.Invoke(new Action(() =>
            {
                if (twin == null)
                    twin = new transparentWin();

                twin.Topmost = true;
                twin.Activate();
                twin.Show();
                this.Hide();
            }));
        }