示例#1
0
 private void Load_ini()
 {
     if (this.tab_control.SelectedIndex == 0 && databases == null) //数据库配置界面
     {
         databases = File_Helper.load_DB(Config_Helper.database_ini);
         this.db_listView.ItemsSource = databases;
     }
     else if (this.tab_control.SelectedIndex == 1 && modifications == null) //修饰配置界面
     {
         modifications = File_Helper.load_Modification(Config_Helper.modification_ini);
         this.mod_listView.ItemsSource = modifications;
     }
     else if (this.tab_control.SelectedIndex == 2) //定量配置界面
     {
         quantifications = File_Helper.load_Quant(Config_Helper.quant_ini);
         this.quant_listView.ItemsSource = quantifications;
     }
     else if (this.tab_control.SelectedIndex == 3 && enzymes == null) //酶配置界面
     {
         enzymes = File_Helper.load_Enzyme(Config_Helper.enzyme_ini);
         this.enzyme_listView.ItemsSource = enzymes;
     }
     else if (this.tab_control.SelectedIndex == 4 && aas == null) //氨基酸配置界面
     {
         aas = File_Helper.load_AA(Config_Helper.aa_ini, this);
         this.aa_listView.ItemsSource = aas;
     }
     else if (this.tab_control.SelectedIndex == 5) //元素配置界面
     {
         this.element_listView.ItemsSource = elements;
     }
 }
示例#2
0
        private void N_count_clk(object sender, RoutedEventArgs e)
        {
            this.aas           = File_Helper.load_AA(Config_Helper.aa_ini, this);
            this.modifications = File_Helper.load_Modification(Config_Helper.modification_ini);
            N_Count_window ncw = new N_Count_window(this);

            ncw.Show();
        }