private void EditProperties() { using (PropertiesForm form = new PropertiesForm()) { form.CaptureProperties = properties; if (form.ShowDialog() == DialogResult.OK) { properties = form.CaptureProperties; modified = true; UpdateTitle(); SetupDisplay(); } } }