private List <List <string> > GetRTAlignGroups() { var sourceQuery = session.CreateSQLQuery("SELECT DISTINCT Name FROM SpectrumSource").List(); var fullSourceList = sourceQuery.Cast <string>().ToList(); List <List <string> > splitSourceList; BeginInvoke(new MethodInvoker(() => Application.UseWaitCursor = false)); var groupingForm = new RTGroupingForm(fullSourceList); //TODO: Only use rtaligned entries if (groupingForm.ShowDialog() == DialogResult.OK) { splitSourceList = groupingForm.GetRTGroups(); } else { throw new Exception("RT groups not set properly"); } BeginInvoke(new MethodInvoker(() => Application.UseWaitCursor = true)); return(splitSourceList); }
private List<List<string>> GetRTAlignGroups() { var sourceQuery = session.CreateSQLQuery("SELECT DISTINCT Name FROM SpectrumSource").List(); var fullSourceList = sourceQuery.Cast<string>().ToList(); List<List<string>> splitSourceList; BeginInvoke(new MethodInvoker(() => Application.UseWaitCursor = false)); var groupingForm = new RTGroupingForm(fullSourceList); //TODO: Only use rtaligned entries if (groupingForm.ShowDialog() == DialogResult.OK) splitSourceList = groupingForm.GetRTGroups(); else throw new Exception("RT groups not set properly"); BeginInvoke(new MethodInvoker(() => Application.UseWaitCursor = true)); return splitSourceList; }