private void tb_peakTableFilter_TextChanged(object sender, TextChangedEventArgs 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); }
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, (bool)cbdiscoveryhistogram), DisplayDeltaMassPeak.FormatPeakListGridView(Sweet.lollipop.et_peaks.Select(p => new DisplayDeltaMassPeak(p)).ToList(), "ETPeaks", false) }; return(DataTables); }
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; }
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); CK_View = false; GraphEERelations(); GraphEEPeaks(); ct_EE_Histogram.ChartAreas[0].AxisY.StripLines.Clear(); if (is_cb_Graph_lowerThreshold.HasValue && (bool)is_cb_Graph_lowerThreshold) ct_EE_Histogram.ChartAreas[0].AxisY.StripLines.Add(new StripLine() { BorderColor = Color.Red, IntervalOffset = Convert.ToDouble(nUD_PeakCountMinThreshold.Value) }); update_figures_of_merit(); dgv_EE_Peaks.CurrentCellDirtyStateChanged += EE_Peak_List_DirtyStateChanged;//re-instate event handler after form load and table refresh event }
public void FillTablesAndCharts() { dgv_ET_Peak_List.CurrentCellDirtyStateChanged -= ET_Peak_List_DirtyStateChanged;//remove event handler on form load and table refresh event DisplayUtility.FillDataGridView(dgv_ET_Peak_List, Sweet.lollipop.et_peaks.OrderByDescending(p => p.peak_relation_group_count).Select(p => new DisplayDeltaMassPeak(p)).ToList()); DisplayDeltaMassPeak.FormatPeakListGridView(dgv_ET_Peak_List, false); DisplayUtility.FillDataGridView(dgv_ET_Relations, Sweet.lollipop.et_relations.Select(r => new DisplayProteoformRelation(r)).ToList()); DisplayProteoformRelation.FormatRelationsGridView(dgv_ET_Relations, true, false, false); GraphETRelations(); GraphETPeaks(); ct_ET_Histogram.ChartAreas[0].AxisY.StripLines.Clear(); if ((bool)cbgraphlowerthreshold) { ct_ET_Histogram.ChartAreas[0].AxisY.StripLines.Add(new System.Windows.Forms.DataVisualization.Charting.StripLine() { BorderColor = System.Drawing.Color.Red, IntervalOffset = Convert.ToDouble(nUD_PeakCountMinThreshold.Value) }); } update_figures_of_merit(); CBDISCOVERYHISTOGRAM = false; CBVIEWDECOYHISTOGRAM = false; dgv_ET_Peak_List.CurrentCellDirtyStateChanged += ET_Peak_List_DirtyStateChanged;//re-instate event handler after form load and table refresh event }