Пример #1
0
 public CustomConfigDlg(EM4325Tag.CustomConfig curCfg)
 {
     InitializeComponent();
     theConfig = curCfg;
     PopulateControls(curCfg);
     CheckSetup(false);
 }
Пример #2
0
 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");
 }