public ProviderChooser(DeviceInformations devices) { // Remember m_Devices = devices; // Required for Windows Form Designer support InitializeComponent(); // Finish Text = string.Format(Text, Tools.ProductName); // Load from list foreach ( DeviceInformation device in devices ) selDevice.Items.Add(device.UniqueIdentifier); // Load default DeviceInformation active = devices.ActiveProvider; // None if ( null == active ) return; // Events off selDevice.Enabled = false; // Select it selDevice.SelectedItem = active.UniqueIdentifier; // Events on selDevice.Enabled = true; }
/// <summary> /// Create a new device selector instance. /// </summary> /// <param name="settings">The <i>Path</i> entry can be used to /// change the location of the <i>DVBNETProviders.xml</i> relative /// to the path of the current executable.</param> public DeviceSelector(Hashtable settings) { // Create m_Devices = new DeviceInformations(settings); }