Exemple #1
0
        private void btnOk_Click(object sender, EventArgs e)
        {
            // Save settings
            var newConfig = (Configuration)propertyGrid.SelectedObject;

            if (!Program.Configuration.ApplyChanges(newConfig))
            {
                MessageBox.Show("Invalid configuration for some reason", "ATray Configuration error");
                return;
            }
            Program.Configuration = newConfig;
            Program.Configuration.SaveToIniFile();

            // Save new repo list
            _repositories.Save();
            Close();
        }
Exemple #2
0
 public void SaveToFile()
 {
     repos.Save();
 }