Esempio n. 1
0
 private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (loadOver && comboBox1.SelectedIndex > -1 && comboBox1.Items[comboBox1.SelectedIndex] != null && comboBox1.Items[comboBox1.SelectedIndex].ToString() != NoneSearchEngine)
     {
         string s = KellCommon.ReadAppSetting(KellWebBrowser.SearchEngineConfigName + comboBox1.SelectedIndex);
         if (!string.IsNullOrEmpty(s))
         {
             KellCommon.WriteIni("AppSettings", "Search", s.Replace('+', '&'), KellCommon.IniFile);
         }
     }
 }
Esempio n. 2
0
        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            string val = checkBox1.Checked ? "0" : "1";

            KellCommon.WriteIni("AppSettings", "NewWindow", val, KellCommon.IniFile);
        }