private void btnButtonDevice_Click(object sender, System.EventArgs e) { ConfigureDevicesParameters cdp = new ConfigureDevicesParameters(); cdp.SetActionFormats(mappings); Manager.ConfigureDevices(cdp, ConfigureDevicesFlags.Default); }
/// <summary> /// Show the native device configuration UI /// </summary> public void ConfigureDevices() { ActionFormat[] formats = { DIActionFormat }; ConfigureDevicesParameters cdParams = new ConfigureDevicesParameters(); cdParams.SetActionFormats(formats); Manager.ConfigureDevices(cdParams, ConfigureDevicesFlags.Default); }
/// <summary> /// Show the native device configuration UI /// </summary> public void ConfigureDevices() { ActionFormat[] formats = { DIActionFormat }; ConfigureDevicesParameters cdParams = new ConfigureDevicesParameters(); cdParams.SetActionFormats(formats); // Disable the parent UserInterface.Enabled = false; Manager.ConfigureDevices(cdParams, ConfigureDevicesFlags.Default); // Re-enable the parent UserInterface.Enabled = true; // Bring it back to the front UserInterface.BringToFront(); }