private void _miPropertiesShowErrors_Click(object sender, EventArgs e) { using (WiaPropertiesErrorsForm ErrorsDlg = new WiaPropertiesErrorsForm()) { ErrorsDlg.ShowDialog(this); } }
private void _miPropertiesWiaProperties_Click(object sender, EventArgs e) { _forCapabilities = false; using (WiaDeviceItemsForm DeviceItemsDlg = new WiaDeviceItemsForm()) { if (DeviceItemsDlg.ShowDialog(this) == DialogResult.OK) { using (WiaPropertiesForm PropertiesDlg = new WiaPropertiesForm()) { if (PropertiesDlg.ShowDialog(this) == DialogResult.OK) { if (_errorList.Count > 0) { using (WiaPropertiesErrorsForm ErrorsDlg = new WiaPropertiesErrorsForm()) { ErrorsDlg.ShowDialog(this); } } } } } } }