Exemple #1
0
        public static void Open(Form parent)
        {
            FormSettings fs = new FormSettings();

            fs._parent   = parent;
            fs._settings = SettingsManager.Current.Settings;

            DialogResult result = fs.ShowDialog(parent);

            if (result == DialogResult.Yes || result == DialogResult.OK)
            {
                SettingsManager.Current.Settings = fs._settings;
                if (result == DialogResult.Yes)
                {
                    SettingsManager.Current.Save();
                }
            }
        }
Exemple #2
0
 private void OnButtonSettingsClick(object sender, EventArgs e)
 {
     FormSettings.Open(this);
 }