public void GetControlValue(ref ConfigurationStatus.FNBase pInfo) { pInfo.BetsTime = this.Ckb_Time.Checked; pInfo.BetsTimeType = this.GetTimeType(); pInfo.FWBeginTimeSelect = this.Ckb_FWTime1.Checked; pInfo.FWBeginTimeValue = this.Dtp_FWTime1.Value.ToString("HH:mm:ss"); pInfo.FWEndTimeSelect = this.Ckb_FWTime2.Checked; pInfo.FWEndTimeValue = this.Dtp_FWTime2.Value.ToString("HH:mm:ss"); pInfo.FWEndType = this.GetFWEndType(); pInfo.DJSEndTimeValue = this.Dtp_DJSTime.Value.ToString("HH:mm:ss"); pInfo.DJSEndType = this.GetDJSEndType(); }
public void SetControlValue(ConfigurationStatus.FNBase pInfo) { this.Ckb_Time.Checked = pInfo.BetsTime; this.Cbb_TimeType.SelectedIndex = (int)pInfo.BetsTimeType; this.Ckb_FWTime1.Checked = pInfo.FWBeginTimeSelect; this.Dtp_FWTime1.Value = Convert.ToDateTime(pInfo.FWBeginTimeValue); this.Ckb_FWTime2.Checked = pInfo.FWEndTimeSelect; this.Dtp_FWTime2.Value = Convert.ToDateTime(pInfo.FWEndTimeValue); this.Cbb_FWTime2Type.SelectedIndex = (int)pInfo.FWEndType; this.Dtp_DJSTime.Value = Convert.ToDateTime(pInfo.DJSEndTimeValue); this.Cbb_DJSTimeType.SelectedIndex = (int)pInfo.DJSEndType; }