private void Init() { UpdateQamFrequencyFieldAvailability(); mpComboBoxFrequencies.Items.Clear(); try { fileFilters = new FileFilters("ATSC"); mpComboBoxFrequencies.DataSource = fileFilters.AllFiles; mpComboBoxFrequencies.ValueMember = "FileName"; mpComboBoxFrequencies.DisplayMember = "DisplayName"; } catch (Exception) { MessageBox.Show(@"Unable to open TuningParameters\atsc\*.xml"); return; } }
private void Init() { checkBoxQAM_CheckedChanged(null, null); mpComboBoxFrequencies.Items.Clear(); try { fileFilters = new FileFilters("ATSC"); mpComboBoxFrequencies.DataSource = fileFilters.AllFiles; mpComboBoxFrequencies.ValueMember = "FileName"; mpComboBoxFrequencies.DisplayMember = "DisplayName"; } catch (Exception) { MessageBox.Show(@"Unable to open TuningParameters\atsc\*.xml"); return; } }
private void Init() { if (checkBoxQAM.Enabled != true || checkBoxQAM.Checked == false) { mpComboBoxFrequencies.Enabled = false; } mpComboBoxFrequencies.Items.Clear(); try { fileFilters = new FileFilters("ATSC"); mpComboBoxFrequencies.DataSource = fileFilters.AllFiles; mpComboBoxFrequencies.ValueMember = "FileName"; mpComboBoxFrequencies.DisplayMember = "DisplayName"; } catch (Exception) { MessageBox.Show(@"Unable to open TuningParameters\atsc\*.xml"); return; } }
private void Init() { // set to same positions as progress mpGrpAdvancedTuning.Top = mpGrpScanProgress.Top; mpComboBoxCountry.Items.Clear(); try { fileFilters = new FileFilters("DVBC", ref mpComboBoxCountry, ref mpComboBoxRegion); } catch (Exception) { MessageBox.Show(@"Unable to open TuningParameters\dvbc\*.xml"); return; } SetButtonState(); SetDefaults(); buttonText = mpButtonScanTv.Text; checkBoxCreateSignalGroup.Text = "Create \"" + TvConstants.TvGroupNames.DVBC + "\" group"; scanState = ScanState.Initialized; }