コード例 #1
0
 private void LoadSettings()
 {
     GroupSettingsManager.Load();
     groupSettings.Clear();
     foreach (GroupSettings settings in GroupSettingsManager.Groups)
     {
         groupSettings.Add(settings.GroupName, settings);
     }
 }
コード例 #2
0
 private void UpdateGroupCtrlSettings()
 {
     if (loading == false)
     {
         GroupSettingsManager.Save();
         settingsChanged = true;
         ShowSampleShops();
     }
 }
コード例 #3
0
        private void cmbGroup_SelectedIndexChanged(object sender, EventArgs e)
        {
            listingViewGroupCtrl1.Visible = true;
            if (cmbGroup.SelectedItem != null)
            {
                this.settings = GroupSettingsManager.GetGroupSettings((string)cmbGroup.SelectedItem);
            }

            LoadSettings();
        }
コード例 #4
0
        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();
            }
        }