Пример #1
0
 public void initialize(Form appMainWin, string appId, AppWin_Si4022_CP.Si4022_ConfigurationSetting cfgSetting, AppWin_Si4022_CP.Si4022_PowerManagement powerMan, Label lblSetEnableInfo, TextBox txbWakeUpM, TextBox txbWakeUpR, TextBox txbWakeUpD, TextBox txbWakeUpTime, Label lblTimeUnit, TextBox txbCommand, TextBox txbExtCommand)
 {
     this._appMainWin = appMainWin;
     this._appId = appId;
     this._cfgSetting = cfgSetting;
     this._powerMan = powerMan;
     this._lblSetEnableInfo = lblSetEnableInfo;
     this._txbWakeUpM = txbWakeUpM;
     this._txbWakeUpR = txbWakeUpR;
     this._txbWakeUpD = txbWakeUpD;
     this._txbWakeUpTime = txbWakeUpTime;
     this._lblTimeUnit = lblTimeUnit;
     this._txbCommand = txbCommand;
     this._txbExtCommand = txbExtCommand;
     this._txbWakeUpM.Leave += new EventHandler(this._txbWakeUpM_Leave);
     this._txbWakeUpM.KeyPress += new KeyPressEventHandler(this._txbWakeUpM_KeyPress);
     this._txbWakeUpR.Leave += new EventHandler(this._txbWakeUpR_Leave);
     this._txbWakeUpR.KeyPress += new KeyPressEventHandler(this._txbWakeUpR_KeyPress);
     this._txbWakeUpD.Leave += new EventHandler(this._txbWakeUpD_Leave);
     this._txbWakeUpD.KeyPress += new KeyPressEventHandler(this._txbWakeUpD_KeyPress);
     this.enableWakeUpTimer(this._wakeUpTimerEnabled);
     this._txbWakeUpM.Text = this.WakeUpM.ToString();
     this._txbWakeUpR.Text = this._wakeUpR.ToString();
     this._txbWakeUpD.Text = this._wakeUpD.ToString();
     this.setWakeUpTime();
     this.calcCommand();
     this._isPublishChangeEnabled = true;
 }
Пример #2
0
 public void initialize(Form appMainWin, string appId, AppWin_Si4022_CP.Si4022_ConfigurationSetting cfgSetting, AppWin_Si4022_CP.Si4022_PowerManagement powerMan, Label lblEnableInfo, CheckBox chbEn32kHz, ComboBox cbbClkOut, TextBox txbLBD, TextBox txbLBDV, TextBox txbCommand)
 {
     this._appMainWin = appMainWin;
     this._appId = appId;
     this._cfgSetting = cfgSetting;
     this._powerMan = powerMan;
     this._lblEnableInfo = lblEnableInfo;
     this._chbEn32kHz = chbEn32kHz;
     this._cbbClkOut = cbbClkOut;
     this._txbLBD = txbLBD;
     this._txbLBDV = txbLBDV;
     this._txbCommand = txbCommand;
     this._chbEn32kHz.CheckedChanged += new EventHandler(this.controlChanged);
     this._cbbClkOut.SelectedIndexChanged += new EventHandler(this.controlChanged);
     this._txbLBD.Leave += new EventHandler(this._txbLBD_Leave);
     this._txbLBD.KeyPress += new KeyPressEventHandler(this._txbLBD_KeyPress);
     this._txbLBDV.Leave += new EventHandler(this._txbLBDV_Leave);
     this._txbLBDV.KeyPress += new KeyPressEventHandler(this._txbLBDV_KeyPress);
     this.enableLowBattDet(this._lowBattDetEnabled);
     this.enableClockOutput(this._clockOutputEnabled);
     this.setClkOutItems();
     this._txbLBD.Text = this._lbdc.ToString();
     this.validate_lbdTextChange();
     this._isPublishChangeEnabled = true;
 }