private void _miPropertiesWiaProperties_Click(object sender, EventArgs e) { bool bTopMost = logWindow.TopMost; logWindow.TopMost = false; _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 (_wiaerrorList.Count > 0) { using (WiaPropertiesErrorsForm ErrorsDlg = new WiaPropertiesErrorsForm()) { ErrorsDlg.ShowDialog(this); } } } } } } logWindow.TopMost = bTopMost; }
private void _miPropertiesShowErrors_Click(object sender, EventArgs e) { bool bTopMost = logWindow.TopMost; logWindow.TopMost = false; using (WiaPropertiesErrorsForm ErrorsDlg = new WiaPropertiesErrorsForm()) { ErrorsDlg.ShowDialog(this); } logWindow.TopMost = bTopMost; }