Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        private void _miCapabilitiesShowFormats_Click(object sender, EventArgs e)
        {
            bool bTopMost = logWindow.TopMost;

            logWindow.TopMost = false;
            _forCapabilities  = true;
            using (WiaDeviceItemsForm DeviceItemsDlg = new WiaDeviceItemsForm())
            {
                if (DeviceItemsDlg.ShowDialog(this) == DialogResult.OK)
                {
                    using (SupportedFormatsForm SupportedFormatsDlg = new SupportedFormatsForm())
                    {
                        SupportedFormatsDlg.ShowDialog(this);
                    }
                }
            }
            logWindow.TopMost = bTopMost;
        }