public List <DataTable> SetTables() { DataTables = new List <DataTable> { DisplayNeuCodePair.FormatNeuCodeTable(Sweet.lollipop.raw_neucode_pairs.Select(x => new DisplayNeuCodePair(x)).ToList(), "NeuCodePairs") }; return(DataTables); }
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); } }
private void FillNeuCodePairsDGV() { DisplayUtility.FillDataGridView(dgv_RawExpNeuCodePairs, Sweet.lollipop.raw_neucode_pairs.Select(n => new DisplayNeuCodePair(n))); DisplayNeuCodePair.FormatNeuCodeTable(dgv_RawExpNeuCodePairs); }