Example #1
0
 private void comboBox_Config_SelectedIndexChanged(object sender, EventArgs e)
 {
     string car = (string)comboBox_Config.SelectedItem;
     carSelected = (IDictionary)ConfigurationManager.GetSection("CarConfig/" + car);
     flash = new Flash(carSelected, s19);
     flash.init();
 }
Example #2
0
 private void comboBox_Config_Click(object sender, EventArgs e)
 {
     flash = null;
     comboBox_Config.Items.Clear();
     Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
     int confnum = config.GetSectionGroup("CarConfig").Sections.Count;
     //String[] carInfo=new String[confnum];
     for (int index = 0; index < confnum; index++)
     {
         //carInfo[index]= config.GetSectionGroup("CarConfig").Sections.GetKey(index);
         comboBox_Config.Items.Add(config.GetSectionGroup("CarConfig").Sections.GetKey(index));
     }
 }