string TypeTextFragment(AssaySelector.MeasurementOption filter) { if (filter.IsListMode() && LMOnly) return "List Mode "; else { if (AllMeas) return string.Empty; else return (AssaySelector.MeasurementOption.rates == filter ? "Rates Only" : filter.PrintName()) + " "; } }
void SetTitlesAndChoices(AssaySelector.MeasurementOption filter, bool alltypes, EndGoal goal, string detector = "", string inspnum = "") { string upthehill = "Measurement Selection for Detector"; string backwards = "Measurement Selection for All Detectors"; string itwillbe = "Select Measurement for Detector"; string allright = "Select Measurements to Save for Detector"; AllMeas = alltypes; Goal = goal; string title = ""; if (Goal == EndGoal.Report) title = upthehill; else if (Goal == EndGoal.Summary) title = backwards; else if (Goal == EndGoal.Reanalysis) { title = itwillbe; listView1.MultiSelect = false; } else // if (Goal == EndGoal.Transfer) title = allright; if (!AllMeas && Goal != EndGoal.Reanalysis) title = (filter.PrintName() + " " + title); if (!string.IsNullOrEmpty(detector)) title += (" " + detector); if (!string.IsNullOrEmpty(inspnum)) title += (", Inspection #" + inspnum); Text = title; }