Example #1
0
        private void btn_cancel_Click(object sender, EventArgs e)
        {
            this.FindForm().Close();
            frmScreenShot frm = frmScreenShot.GetInstance();

            frm.Reset();
        }
Example #2
0
        private void btn_ok_Click(object sender, EventArgs e)
        {
            this.FindForm().Close();
            frmScreenShot frm = frmScreenShot.GetInstance();

            frm.Reset();
            this.DialogResult = DialogResult.OK;
        }
Example #3
0
 public static frmScreenShot GetInstance()
 {
     if (screenShot == null)
     {
         screenShot = new frmScreenShot();
     }
     return(screenShot);
 }
Example #4
0
        private void 截图ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmScreenShot frm = frmScreenShot.GetInstance();

            frm.ShowDialog();
        }