Пример #1
0
        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);
        }
Пример #2
0
        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;
        }