Example #1
0
        private void tb_modTableFilter_TextChanged(object sender, EventArgs e)
        {
            IEnumerable <object> selected_unmods = tb_modTableFilter.Text == "" ?
                                                   Sweet.lollipop.theoretical_database.unlocalized_lookup.Values :
                                                   ExtensionMethods.filter(Sweet.lollipop.theoretical_database.unlocalized_lookup.Values, tb_modTableFilter.Text);

            DisplayUtility.FillDataGridView(dgv_unlocalizedModifications, selected_unmods.OfType <UnlocalizedModification>().Select(u => new DisplayUnlocalizedModification(u)));
            DisplayUnlocalizedModification.FormatUnlocalizedModificationTable(dgv_unlocalizedModifications);
        }
 public void FillTablesAndCharts()
 {
     reload_database_list();
     DisplayUtility.FillDataGridView(dgv_Database, SaveState.lollipop.target_proteoform_community.theoretical_proteoforms.Select(t => new DisplayTheoreticalProteoform(t)));
     initialize_table_bindinglist();
     DisplayTheoreticalProteoform.FormatTheoreticalProteoformTable(dgv_Database);
     DisplayUtility.FillDataGridView(dgv_unlocalizedModifications, SaveState.lollipop.theoretical_database.unlocalized_lookup.Values.Select(m => new DisplayUnlocalizedModification(m)));
     DisplayUnlocalizedModification.FormatUnlocalizedModificationTable(dgv_unlocalizedModifications);
 }
Example #3
0
 public List <DataTable> SetTables()
 {
     DataTables = new List <DataTable>
     {
         DisplayTheoreticalProteoform.FormatTheoreticalProteoformTable(Sweet.lollipop.target_proteoform_community.theoretical_proteoforms.Select(t => new DisplayTheoreticalProteoform(t)).ToList(), "TargetDatabase"),
         DisplayUnlocalizedModification.FormatUnlocalizedModificationTable(Sweet.lollipop.theoretical_database.unlocalized_lookup.Values.Select(m => new DisplayUnlocalizedModification(m)).ToList(), "UnlocalizedModifications")
     };
     foreach (KeyValuePair <string, ProteoformCommunity> decoy_community in Sweet.lollipop.decoy_proteoform_communities)
     {
         DataTables.Add(DisplayTheoreticalProteoform.FormatTheoreticalProteoformTable(decoy_community.Value.theoretical_proteoforms.Select(t => new DisplayTheoreticalProteoform(t)).ToList(), decoy_community.Key));
     }
     return(DataTables);
 }
Example #4
0
        private void btn_loadModNames_Click(object sender, EventArgs e)
        {
            OpenFileDialog d = new OpenFileDialog();

            d.Title       = "Modification Names";
            d.Filter      = "Modification Names (*.modnames) | *.modnames";
            d.Multiselect = false;

            if (d.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            Sweet.lollipop.theoretical_database.load_unlocalized_names(d.FileName);
            DisplayUtility.FillDataGridView(dgv_unlocalizedModifications, Sweet.lollipop.theoretical_database.unlocalized_lookup.Values.Select(m => new DisplayUnlocalizedModification(m)));
            DisplayUnlocalizedModification.FormatUnlocalizedModificationTable(dgv_unlocalizedModifications);
        }