private void tb_peakTableFilter_TextChanged(object sender, EventArgs e)
        {
            IEnumerable <object> selected_peaks = tb_peakTableFilter.Text == "" ?
                                                  SaveState.lollipop.ee_peaks :
                                                  ExtensionMethods.filter(SaveState.lollipop.ee_peaks, tb_peakTableFilter.Text);

            DisplayUtility.FillDataGridView(dgv_EE_Peaks, selected_peaks.OfType <DeltaMassPeak>());
            DisplayUtility.FormatPeakListGridView(dgv_EE_Peaks, true);
        }
 public void FillTablesAndCharts()
 {
     dgv_EE_Peaks.CurrentCellDirtyStateChanged -= EE_Peak_List_DirtyStateChanged;//remove event handler on form load and table refresh event
     FillEEPeakListTable();
     FillEERelationsGridView();
     DisplayProteoformRelation.FormatRelationsGridView(dgv_EE_Relations, false, true);
     DisplayUtility.FormatPeakListGridView(dgv_EE_Peaks, true);
     GraphEERelations();
     GraphEEPeaks();
     update_figures_of_merit();
     dgv_EE_Peaks.CurrentCellDirtyStateChanged += EE_Peak_List_DirtyStateChanged;//re-instate event handler after form load and table refresh event
 }