public void InitSessions(SessionForm[] sessions, StringCollection individualTypes, StringCollection genotypeStatuses) { string[] names; MySessions = sessions; if (MySessions != null) { names = new string[MySessions.GetLength(0)]; for (int i = 0; i < MySessions.GetLength(0); i++) { names[i] = MySessions[i].Text; } IdentificationComparisonSource.SetSessionNames(names); } if (individualTypes != null) { IdentificationComparisonSource.SetItemTypes(individualTypes); } if (genotypeStatuses != null) { IdentificationComparisonSource.SetGenotypeStatuses(genotypeStatuses); } }
private void OKButton_Click(object sender, EventArgs e) { IdentificationSettings settings; InvestigationSourceInfo sourceInfo; InvestigationReportForm repForm; try { //Check that a source has been selected. if (IdentificationComparisonSource.GetSourceName().Trim() == "") { MessageManager.ShowInformation("Please select a valid source.", this); return; } settings = GetSettings(); sourceInfo = GetSourceInfo(IdentificationComparisonSource); repForm = new InvestigationReportForm(MyConnectionString); repForm.GenerateIdentificationReport(sourceInfo, settings); } catch (Exception ex) { MessageManager.ShowError(ex, "Error when generating comparison report.", this); } }
public void InitReferenceSets(StringCollection referenceSetNames) { string[] names; int i = 0; names = new string[referenceSetNames.Count]; foreach (string tempName in referenceSetNames) { names[i++] = tempName; } IdentificationComparisonSource.SetReferenceSetNames(names); }