private void FormLaboratoryEdit_Load(object sender, System.EventArgs e) { textDescription.Text = LabCur.Description; textPhone.Text = LabCur.Phone; textWirelessPhone.Text = LabCur.WirelessPhone; textAddress.Text = LabCur.Address; textCity.Text = LabCur.City; textState.Text = LabCur.State; textZip.Text = LabCur.Zip; textEmail.Text = LabCur.Email; textNotes.Text = LabCur.Notes; turnaroundList = LabTurnarounds.GetForLab(LabCur.LaboratoryNum); comboSlip.Items.Add(Lan.g(this, "Default")); comboSlip.SelectedIndex = 0; SlipList = SheetDefs.GetCustomForType(SheetTypeEnum.LabSlip); for (int i = 0; i < SlipList.Count; i++) { comboSlip.Items.Add(SlipList[i].Description); if (LabCur.Slip == SlipList[i].SheetDefNum) { comboSlip.SelectedIndex = i + 1; } } checkIsHidden.Checked = LabCur.IsHidden; FillGrid(); }
private void FormLaboratoryEdit_Load(object sender, System.EventArgs e) { textDescription.Text = LabCur.Description; textPhone.Text = LabCur.Phone; textNotes.Text = LabCur.Notes; turnaroundList = LabTurnarounds.GetForLab(LabCur.LaboratoryNum); FillGrid(); }
private void listLab_SelectedIndexChanged(object sender, EventArgs e) { if (listLab.SelectedIndex == -1) { return; } turnaroundList = LabTurnarounds.GetForLab(ListLabs[listLab.SelectedIndex].LaboratoryNum); listTurnaround.Items.Clear(); for (int i = 0; i < turnaroundList.Count; i++) { listTurnaround.Items.Add(turnaroundList[i].Description + ", " + turnaroundList[i].DaysActual.ToString()); } }