示例#1
0
        private ScreenShotForm ShowScreenShotForm()
        {
            Hide();
            Thread.Sleep(100);

            ScreenShotForm f = new ScreenShotForm();

            f.DidTakeScreenShot = (bitmap) => SaveScreenShot(bitmap);
            f.Show();

            return(f);
        }
示例#2
0
        private void screenShotMenuItem_Click(object sender, EventArgs e)
        {
            ScreenShotForm f = ShowScreenShotForm();

            f.PrintScreen();
        }
        private ScreenShotForm ShowScreenShotForm()
        {
            Hide();
            Thread.Sleep(100);

            ScreenShotForm f = new ScreenShotForm();
            f.DidTakeScreenShot = (bitmap) => SaveScreenShot(bitmap);
            f.Show();

            return f;
        }