Esempio n. 1
0
 private void frmSetting_Load(object sender, EventArgs e)
 {
     config = (this.Owner as frmBrowser).config;
     txtIndex.Text = config.GetKeyValue("main", "index");
     double speed = 1;
     try
     {
         speed = double.Parse(config.GetKeyValue("main", "speed"));
     }
     catch { }
     txtSpeed.Text = speed.ToString();
     if (speed >= 0.01 && speed <= 100)
         trSpeed.Value = (int)((speed >= 0) ? speed : speed * 100 - 100);
     reg = Registry.CurrentUser.OpenSubKey(strRegPath,true);
     int a = 0;
     try
     {
         a = (int)reg.GetValue(strRegKey);
     }
     catch { }
     int x=(int)Array.IndexOf<int>(vers, a);
     if (x == -1) x = 0;
     comboIE.SelectedIndex = x;
 }