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