private void zoomPhotoButton_Click(object sender, EventArgs e) { Enabled = false; pbf = new PhotoBoxForm(photoBox.Image); pbf.FormClosed += new FormClosedEventHandler(photoForm_Closed); pbf.ShowDialog(); }
private void photoForm_Closed(object sender, EventArgs e) { pbf = null; Enabled = true; }