private void LoadSettings() { GroupSettingsManager.Load(); groupSettings.Clear(); foreach (GroupSettings settings in GroupSettingsManager.Groups) { groupSettings.Add(settings.GroupName, settings); } }
private void UpdateGroupCtrlSettings() { if (loading == false) { GroupSettingsManager.Save(); settingsChanged = true; ShowSampleShops(); } }
private void cmbGroup_SelectedIndexChanged(object sender, EventArgs e) { listingViewGroupCtrl1.Visible = true; if (cmbGroup.SelectedItem != null) { this.settings = GroupSettingsManager.GetGroupSettings((string)cmbGroup.SelectedItem); } LoadSettings(); }
private void lnkApplyToAll_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (MessageBox.Show("Are you sure you want to apply this to all ? This will overwrite all settings", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { foreach (GroupSettings groupSettings in GroupSettingsManager.Groups) { groupSettings.Copy(this.settings); } GroupSettingsManager.Save(); } }