private void ShowSnapshot(Bitmap snapshot) { SnapshotForm snapshotForm = new SnapshotForm(); snapshotForm.SetImage(snapshot, this._lastPath); snapshotForm.Show(); }
private void btnSnapshot_Click(object sender, EventArgs e) { SnapshotForm snapshotForm = new SnapshotForm(); snapshotForm.ShowDialog(); if (snapshotForm.DialogResult == DialogResult.OK) { int maxPictureKey = Dao.Picture.GetMaxKey(); byte[] userByteImage = Dao.Picture.GetByPK(maxPictureKey).value; Image userImage = ByteArrayToImage(userByteImage); pbUserImage.Image = userImage; btnSnapshot.Enabled = false; } }
public void UpdateCalibrationSnapshot(SceneCalibrationSnapshot snapshot) { this.Snapshot = snapshot; SnapshotForm?.Update(snapshot); }