private void bt_MultipleTechinician_Click(object sender, EventArgs e) { PopulateCheckTechId = tb_ServiceProvided.Text; TechnicianForm technicianForm = new TechnicianForm(); TechnicianForm.Choice = "updateCompletedRequest"; technicianForm.ShowDialog(); try { tb_ServiceProvided.Text = technicianForm.PopulateTechinician.ToString(); tb_Ids.Text = technicianForm.SelectedProviderId.ToString(); techId = technicianForm.SelectedProviderId.ToString().Split(','); foreach (var id in techId) { string test = id; } } catch (Exception) { tb_ServiceProvided.Clear(); } }
private void TechnicianList(string x) { PopulateCheckTechId = tb_ToBeServiceProvided.Text; TechnicianForm technicianForm = new TechnicianForm(); TechnicianForm.Choice = "ucNewRequest"; technicianForm.ShowDialog(); try { if (x == "providedBy") { tb_ServiceProvided.Text = technicianForm.PopulateTechinician.ToString(); } tb_Ids.Text = technicianForm.SelectedProviderId.ToString(); techId = technicianForm.SelectedProviderId.ToString().Split(','); foreach (var id in techId) { string test = id; } } catch (Exception) { tb_ServiceProvided.Clear(); } }