private void bindingSourceLabResult_CurrentChanged(object sender, EventArgs e) { LaboratoryRequest laboratoryRequest = bindingSourceLabResult.Current as LaboratoryRequest; if (laboratoryRequest.IsNull()) { bindingSourceItems.DataSource = null; return; } LaboratoryRequestItemSolClient client = Extensions.Extensions.GetLaboratoryRequestItem(); bindingSourceItems.DataSource = client.LaboratoryRequestItems(laboratoryRequest.Id); client.Close(); }
private void bindingSourceLabRequests_CurrentChanged(object sender, EventArgs e) { if (opensplash) { Extensions.Extensions.ShowWaitForm(); } LaboratoryRequest laboratoryRequest = bindingSourceLabRequests.Current as LaboratoryRequest; if (laboratoryRequest.IsNull()) { bindingSourceResults.DataSource = null; return; } LaboratoryRequestItemSolClient client = Extensions.Extensions.GetLaboratoryRequestItem(); bindingSourceResults.DataSource = client.LaboratoryRequestItems(laboratoryRequest.Id); client.Close(); gridControlLabResults.Refresh(); if (opensplash) { SplashScreenManager.CloseForm(false); } }