示例#1
0
 public List <DataTable> SetTables()
 {
     DataTables = new List <DataTable> {
         DisplayNeuCodePair.FormatNeuCodeTable(Sweet.lollipop.raw_neucode_pairs.Select(x => new DisplayNeuCodePair(x)).ToList(), "NeuCodePairs")
     };
     return(DataTables);
 }
示例#2
0
        private void display_light_proteoforms()
        {
            List <IAggregatable> components = (selected_pf == null) ? new List <IAggregatable>() :
                                              ((bool)ra ?
                                               selected_pf.aggregated : (
                                                   (bool)rb ?
                                                   selected_pf.lt_quant_components.ToList <IAggregatable>() :
                                                   selected_pf.hv_quant_components.ToList <IAggregatable>()));

            if (Sweet.lollipop.neucode_labeled && (bool)ra)
            {
                DisplayUtility.FillDataGridView(dgv_AcceptNeuCdLtProteoforms, components.Select(c => new DisplayNeuCodePair(c as NeuCodePair)));
            }
            else if ((bool)ra && selected_pf != null && selected_pf.topdown_id)
            {
                DisplayUtility.FillDataGridView(dgv_AcceptNeuCdLtProteoforms, (selected_pf as TopDownProteoform).topdown_hits.Select(h => new DisplayTopDownHit(h)));
            }
            else
            {
                DisplayUtility.FillDataGridView(dgv_AcceptNeuCdLtProteoforms, components.Select(c => new DisplayComponent(c as ProteoformSuiteInternal.Component)));
            }

            if (Sweet.lollipop.neucode_labeled && (bool)ra)
            {
                DisplayNeuCodePair.FormatNeuCodeTable(dgv_AcceptNeuCdLtProteoforms);
            }
            else if ((bool)ra && selected_pf != null && selected_pf.topdown_id)
            {
                DisplayTopDownHit.FormatTopDownHitsTable(dgv_AcceptNeuCdLtProteoforms);
            }
            else
            {
                DisplayComponent.FormatComponentsTable(dgv_AcceptNeuCdLtProteoforms);
            }
        }
示例#3
0
 private void FillNeuCodePairsDGV()
 {
     DisplayUtility.FillDataGridView(dgv_RawExpNeuCodePairs, Sweet.lollipop.raw_neucode_pairs.Select(n => new DisplayNeuCodePair(n)));
     DisplayNeuCodePair.FormatNeuCodeTable(dgv_RawExpNeuCodePairs);
 }