Exemple #1
0
 private void lblTunerDevice_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         VideoInputDeviceList vidl = new VideoInputDeviceList();
         vidl.PopulateAllDevices();
         System.Diagnostics.Debug.WriteLine("<< Video input devices on system >>");
         foreach (string id in vidl.Items)
         {
             System.Diagnostics.Debug.WriteLine(id);
         }
     }
     catch (Exception ex)
     {
         FCMessageBox.Show("Error!", ex.ToString(), this);
     }
 }
Exemple #2
0
        private void AdvancedSettings_Load(object sender, EventArgs e)
        {
            try
            {
                VideoInputDeviceList devices = new VideoInputDeviceList();
                Tuners = devices.Items;
            }
            catch (Exception ex)
            {
                FCMessageBox.Show("Error loading DeviceConfig.xml!", "There was an error loading DeviceConfig.xml. Please check the validity of the file." + Environment.NewLine + Environment.NewLine + ex.ToString(), this);
            }

            this.AutoSnapInterval          = AppUser.Current.SnapshotInterval;
            this.AutoSnapMaximum           = AppUser.Current.SnapshotMaximum;
            this.TunerInputType            = AppUser.Current.TunerInputType;
            this.TunerName                 = AppUser.Current.TunerDeviceName;
            this.ServerAddress             = AppUser.Current.ServerAddress;
            this.ServerSource              = AppUser.Current.ServerSourceName;
            this.cbSourceType.SelectedItem = AppUser.Current.TVSource.ToString();
            this.cbInputMode.SelectedItem  = AppUser.Current.TVMode.ToString();

            CHK_ShowNetwork.Checked = !string.IsNullOrEmpty(this.ServerAddress);
            CHK_ShowNetwork_CheckedChanged(this, null);
        }