Esempio n. 1
0
        private void btn_Shoot_Click(object sender, EventArgs e)
        {
            if (this.imageFileName.Count == 3)
            {
                MessageBoxEx.Show("×î¶àÌí¼Ó3ÕÅͼƬ", "Ìáʾ");
                return;
            }
            string imageName = DateTime.Now.ToString("yyMMddHHmmssffff") + this.txtCarNum.Text;

            FrmCamera frm = new FrmCamera(this, imageName);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                if (this.pictureBox1.Image == null)
                {
                    this.pictureBox1.Image     = ZoomImage(this.ImageOut, this.pictureBox1.Height, this.pictureBox1.Width + 10);
                    this.pictureBox1.Image.Tag = imageName;
                }
                else if (this.pictureBox2.Image == null)
                {
                    this.pictureBox2.Image     = ZoomImage(this.ImageOut, this.pictureBox1.Height, this.pictureBox1.Width);
                    this.pictureBox2.Image.Tag = imageName;
                }
                else if (this.pictureBox3.Image == null)
                {
                    this.pictureBox3.Image     = ZoomImage(this.ImageOut, this.pictureBox1.Height, this.pictureBox1.Width);
                    this.pictureBox3.Image.Tag = imageName;
                }
                this.imageFileName.Add(imageName);
            }
        }
Esempio n. 2
0
        private void ToolStripButton1_Click(object sender, EventArgs e)
        {
            FrmCamera c = new FrmCamera();

            c.Show();
        }