Exemplo n.º 1
0
 public List <DataTable> SetTables()
 {
     DataTables = new List <DataTable>
     {
         DisplayProteoformRelation.FormatRelationsGridView(Sweet.lollipop.ee_relations.OfType <ProteoformRelation>().Select(r => new DisplayProteoformRelation(r)).ToList(), "EERelations", false, true, false),
         DisplayDeltaMassPeak.FormatPeakListGridView(Sweet.lollipop.ee_peaks.Select(p => new DisplayDeltaMassPeak(p)).ToList(), "EEPeaks", true)
     };
     return(DataTables);
 }
Exemplo n.º 2
0
        private void tb_peakTableFilter_TextChanged(object sender, EventArgs e)
        {
            IEnumerable <object> selected_peaks = tb_peakTableFilter.Text == "" ?
                                                  Sweet.lollipop.ee_peaks :
                                                  ExtensionMethods.filter(Sweet.lollipop.ee_peaks, tb_peakTableFilter.Text);

            DisplayUtility.FillDataGridView(dgv_EE_Peaks, selected_peaks.OfType <DeltaMassPeak>().Select(p => new DisplayDeltaMassPeak(p)));
            DisplayDeltaMassPeak.FormatPeakListGridView(dgv_EE_Peaks, true);
        }
Exemplo n.º 3
0
 public List <DataTable> SetTables()
 {
     DataTables = new List <DataTable>
     {
         DisplayProteoformRelation.FormatRelationsGridView(Sweet.lollipop.et_relations.OfType <ProteoformRelation>().Select(p => new DisplayProteoformRelation(p)).ToList(), "ETRelations", true, false, cb_discoveryHistogram.Checked),
         DisplayDeltaMassPeak.FormatPeakListGridView(Sweet.lollipop.et_peaks.Select(p => new DisplayDeltaMassPeak(p)).ToList(), "ETPeaks", false)
     };
     return(DataTables);
 }
Exemplo n.º 4
0
 public void FillTablesAndCharts()
 {
     dgv_EE_Peaks.CurrentCellDirtyStateChanged -= EE_Peak_List_DirtyStateChanged;//remove event handler on form load and table refresh event
     DisplayUtility.FillDataGridView(dgv_EE_Peaks, Sweet.lollipop.ee_peaks.OrderByDescending(p => p.peak_relation_group_count).Select(p => new DisplayDeltaMassPeak(p)));
     DisplayUtility.FillDataGridView(dgv_EE_Relations, Sweet.lollipop.ee_relations.Select(r => new DisplayProteoformRelation(r)));
     DisplayProteoformRelation.FormatRelationsGridView(dgv_EE_Relations, false, true, false);
     DisplayDeltaMassPeak.FormatPeakListGridView(dgv_EE_Peaks, true);
     GraphEERelations();
     GraphEEPeaks();
     if (cb_Graph_lowerThreshold.Checked)
     {
         ct_EE_Histogram.ChartAreas[0].AxisY.StripLines.Add(new StripLine()
         {
             BorderColor = Color.Red, IntervalOffset = Convert.ToDouble(nUD_PeakCountMinThreshold.Value)
         });
     }
     else
     {
         ct_EE_Histogram.ChartAreas[0].AxisY.StripLines.Clear();
     }
     update_figures_of_merit();
     dgv_EE_Peaks.CurrentCellDirtyStateChanged += EE_Peak_List_DirtyStateChanged;//re-instate event handler after form load and table refresh event
 }