예제 #1
0
        private void toolStripButtonSnag_Click(object sender, EventArgs e)
        {
            Bitmap b = this.cameraWindow.CurrentFrame;

            if (b != null)
            {
                CameraSnagForm f = new CameraSnagForm();
                f.Camera = this.CameraClass;
                f.Bitmap = b;
                f.Show();
            }
            else
            {
                MessageBox.Show(Translator.Instance.T("当前窗口中尚无图像, 无法完成截图操作."), MotionPreference.Instance.MessageBoxCaption, MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
예제 #2
0
파일: AVIView.cs 프로젝트: zhuangyy/Motion
 private void toolStripButtonSnag_Click(object sender, EventArgs e)
 {
     Bitmap b = this.cameraWindow.CurrentFrame;
     if (b != null)
     {
         CameraSnagForm f = new CameraSnagForm();
         f.Camera = this.CameraClass;
         f.Bitmap = b;
         f.Show();
     }
     else
     {
         MessageBox.Show(Translator.Instance.T("当前窗口中尚无图像, 无法完成截图操作."), MotionPreference.Instance.MessageBoxCaption, MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }