示例#1
0
        //点击预览原图-上张
        private void PictureBoxLast_photo_Click(object sender, EventArgs e)
        {
            if (this.pictureBox_photoLast.Image == null)
            {
                MessageBox.Show("无上张照片可预览", "温馨提示");
                return;
            }

            if (previewForm != null)
            {
                previewForm.Dispose();
                previewForm = null;
            }

            previewForm = new PreviewForm(this.pictureBox_photoLast.Image, this.groupBox_photoPreviewLast.Text);

            previewForm.ShowDialog();
        }