Example #1
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     if (File.Exists(ConfigFile))
     {
         KbManager.LoadConfig(ConfigFile);
     }
     else
     {
         KbManager.LoadDefaultConfig();
         KbManager.Save(ConfigFile);
     }
     UpdatePanels();
 }
Example #2
0
 private void btOK_Click(object sender, EventArgs e)
 {
     PopulateItems();
     if (ValidateConfiguration())
     {
         UpdateSettings();
         keyManager.Save();
         return;
     }
     else
     {
         DialogResult = DialogResult.None;
     }
 }