private void BStartCapture_Click(object sender, EventArgs e) { frmCamera frm = new frmCamera(); frm.Show(); if (Convert.ToInt32(TempFileNames2.Length.ToString()) >= 0) { Picture.Image = Image.FromFile(TempFileNames2); Photoname = TempFileNames2; IsImageChanged = true; } }
private void btnTakePic_Click(object sender, EventArgs e) { frmCamera ff = new frmCamera(this); ff.ShowDialog(); }