private void FillTimes() { _EnrolmentExcessInputDateList = UDTTransfer.UDTEnrolmentExcessInputDateSelect(); if (_EnrolmentExcessInputDateList.Count >= 1) { UDT_EnrolmentExcessInputDate each = _EnrolmentExcessInputDateList[0]; string startTime = each.StartDate.HasValue ? each.StartDate.Value.ToString(DateTimeFormat) : ""; string endTime = each.EndDate.HasValue ? each.EndDate.Value.ToString(DateTimeFormat) : ""; tbStartDateTime.Text = startTime; tbEndDateTime.Text = endTime; } }
static void _bgWorker_DoWork(object sender, DoWorkEventArgs e) { UDTTransfer.UDTEnrolmentExcessCreditsSelect(); UDTTransfer.UDTEnrolmentExcessInputDateSelect(); }