예제 #1
0
        public static DataTable FormatComponentsTable(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));
        }
예제 #2
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));
        }
예제 #3
0
        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));
        }
예제 #4
0
        public static DataTable FormatTopDownTable(List <DisplayTopDownProteoform> display, string table_name, bool identified)
        {
            IEnumerable <Tuple <PropertyInfo, string, bool> > property_stuff = typeof(DisplayTopDownProteoform).GetProperties().Select(x => new Tuple <PropertyInfo, string, bool>(x, header(x.Name), visible(x.Name, true, identified)));

            return(DisplayUtility.FormatTable(display.OfType <DisplayObject>().ToList(), property_stuff, table_name));
        }
예제 #5
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));
        }