예제 #1
0
            public override IEnumerable <Result> GetSelectedResults(BoundDataGridView dataGridView)
            {
                var rowItemValues = RowItemValues.FromDataGridView(typeof(TransitionResult), dataGridView);

                foreach (var rowItem in rowItemValues.GetSelectedRowItems(dataGridView))
                {
                    foreach (var result in rowItemValues.GetRowValues(rowItem).Cast <Result>())
                    {
                        yield return(result);
                    }
                }
            }
예제 #2
0
            public override IEnumerable <SkylineDocNode> GetSelectedNodes(BoundDataGridView dataGridView)
            {
                var rowItemValues = RowItemValues.FromDataGridView(typeof(Entities.Transition), dataGridView);

                foreach (var rowItem in rowItemValues.GetSelectedRowItems(dataGridView))
                {
                    foreach (var transition in rowItemValues.GetRowValues(rowItem).Cast <Entities.Transition>())
                    {
                        yield return(transition);
                    }
                }
            }
예제 #3
0
            public override IEnumerable <Result> GetSelectedResults(BoundDataGridView dataGridView)
            {
                var rowItemValues = RowItemValues.FromDataGridView(typeof(PeptideResult), dataGridView);

                foreach (var rowItem in rowItemValues.GetSelectedRowItems(dataGridView))
                {
                    foreach (var result in rowItemValues.GetRowValues(rowItem).Cast <Result>())
                    {
                        yield return(result);
                    }
                }

                foreach (var precursorResult in Precursors.GetSelectedResults(dataGridView))
                {
                    yield return(((PrecursorResult)precursorResult).PeptideResult);
                }
            }
예제 #4
0
            public override IEnumerable <SkylineDocNode> GetSelectedNodes(BoundDataGridView dataGridView)
            {
                var rowItemValues = RowItemValues.FromDataGridView(typeof(Protein), dataGridView);

                foreach (var rowItem in rowItemValues.GetSelectedRowItems(dataGridView))
                {
                    foreach (var protein in rowItemValues.GetRowValues(rowItem).Cast <Protein>())
                    {
                        yield return(protein);
                    }
                }

                foreach (var peptide in Peptides.GetSelectedNodes(dataGridView))
                {
                    yield return(((Entities.Peptide)peptide).Protein);
                }
            }
예제 #5
0
            public override IEnumerable <SkylineDocNode> GetSelectedNodes(BoundDataGridView dataGridView)
            {
                var rowItemValues = RowItemValues.FromDataGridView(typeof(Entities.Peptide), dataGridView);

                foreach (var rowItem in rowItemValues.GetSelectedRowItems(dataGridView))
                {
                    foreach (var precursor in rowItemValues.GetRowValues(rowItem).Cast <Entities.Peptide>())
                    {
                        yield return(precursor);
                    }
                }

                foreach (var precursor in Precursors.GetSelectedNodes(dataGridView))
                {
                    yield return(((Precursor)precursor).Peptide);
                }
            }