public static DataTable FormatFamiliesTable(List <DisplayProteoformFamily> display, string table_name)
        {
            IEnumerable <Tuple <PropertyInfo, string, bool> > property_stuff = typeof(DisplayProteoformFamily).GetProperties().Select(x => new Tuple <PropertyInfo, string, bool>(x, header(x.Name), true));

            return(DisplayUtility.FormatTable(display.OfType <DisplayObject>().ToList(), property_stuff, table_name));
        }
 public static DataTable FormatInputFileTable(List<DisplayInputFile> display, string table_name, IEnumerable<Purpose> dgv_purposes)
 {
     IEnumerable<Tuple<PropertyInfo, string, bool>> property_stuff = typeof(DisplayInputFile).GetProperties().Select(x => new Tuple<PropertyInfo, string, bool>(x, header(x.Name, dgv_purposes), visible(x.Name, true, dgv_purposes)));
     return DisplayUtility.FormatTable(display.OfType<DisplayObject>().ToList(), property_stuff, table_name);
 }
Beispiel #3
0
        public static DataTable FormatTopDownHitsTable(List <DisplayComponent> display, string table_name)
        {
            IEnumerable <Tuple <PropertyInfo, string, bool> > property_stuff = typeof(DisplayComponent).GetProperties().Select(x => new Tuple <PropertyInfo, string, bool>(x, header(x.Name), visible(x.Name, true)));

            return(DisplayUtility.FormatTable(display.OfType <DisplayObject>().ToList(), property_stuff, table_name));
        }
Beispiel #4
0
        public static DataTable FormatRelationsGridView(List <DisplayProteoformRelation> display, string table_name, bool mask_experimental, bool mask_theoretical, bool raw_et_histogram)
        {
            IEnumerable <Tuple <PropertyInfo, string, bool> > property_stuff = typeof(DisplayProteoformRelation).GetProperties().Select(x => new Tuple <PropertyInfo, string, bool>(x, header(x.Name, mask_experimental, mask_theoretical, raw_et_histogram), visible(x.Name, true, mask_experimental, mask_theoretical, raw_et_histogram)));

            return(DisplayUtility.FormatTable(display.OfType <DisplayObject>().ToList(), property_stuff, table_name));
        }
Beispiel #5
0
        public static DataTable FormatPeakListGridView(List <DisplayDeltaMassPeak> display, string table_name, bool mask_mass_shifter)
        {
            IEnumerable <Tuple <PropertyInfo, string, bool> > property_stuff = typeof(DisplayDeltaMassPeak).GetProperties().Select(x => new Tuple <PropertyInfo, string, bool>(x, header(x.Name, mask_mass_shifter), visible(x.Name, true, mask_mass_shifter)));

            return(DisplayUtility.FormatTable(display.OfType <DisplayObject>().ToList(), property_stuff, table_name));
        }
Beispiel #6
0
        public static DataTable FormatChargeStateTable(List <DisplayChargeState> display, string table_name)
        {
            IEnumerable <Tuple <PropertyInfo, string, bool> > property_stuff = typeof(DisplayExperimentalProteoform).GetProperties().Select(x => new Tuple <PropertyInfo, string, bool>(x, header(x.Name), visible(x.Name, true)));

            return(DisplayUtility.FormatTable(display.OfType <DisplayObject>().ToList(), property_stuff, table_name));
        }
        public static DataTable FormatGridView(List <DisplayQuantitativeValues> display, string table_name)
        {
            IEnumerable <Tuple <PropertyInfo, string, bool> > property_stuff = typeof(DisplayQuantitativeValues).GetProperties().Select(x => new Tuple <PropertyInfo, string, bool>(x, header(x.Name), visible(x.Name, true)));

            return(DisplayUtility.FormatTable(display.OfType <DisplayObject>().ToList(), property_stuff, table_name));
        }