public CustomConfigDlg(EM4325Tag.CustomConfig curCfg) { InitializeComponent(); theConfig = curCfg; PopulateControls(curCfg); CheckSetup(false); }
private void PopulateControls(EM4325Tag.CustomConfig curCfg) { DelayUnitSel.SelectedIndex = curCfg.delayUnits; DelayCountEdit.Text = curCfg.delayValue.ToString(); IntvalUnitSel.SelectedIndex = curCfg.intvalUnits; IntvalCountEdit.Text = curCfg.intvalValue.ToString(); OverCountEdit.Text = curCfg.nrOverTemp.ToString(); OverThreshEdit.Text = curCfg.overTemp.ToString("F2"); UnderCountEdit.Text = curCfg.nrUnderTemp.ToString(); UnderThreshEdit.Text = curCfg.underTemp.ToString("F2"); }