コード例 #1
0
        private void cmbGroup_SelectedIndexChanged(object sender, EventArgs e)
        {
            listingViewGroupCtrl1.Visible = true;
            if (cmbGroup.SelectedItem != null)
            {
                this.settings = GroupSettingsManager.GetGroupSettings((string)cmbGroup.SelectedItem);
            }

            LoadSettings();
        }
コード例 #2
0
 public void Copy(GroupSettings settings)
 {
     this.GroupNameBackgroundColor = settings.GroupNameBackgroundColor;
     this.GroupNameColor           = settings.GroupNameColor;
     this.GroupNameFont            = settings.GroupNameFont;
     this.LogoSize             = settings.LogoSize;
     this.ShopBackgroundColor  = settings.ShopBackgroundColor;
     this.ShopControlSize      = settings.ShopControlSize;
     this.ShopDescriptionColor = settings.ShopDescriptionColor;
     this.ShopDescriptionFont  = settings.ShopDescriptionFont;
     this.ShopNameColor        = settings.ShopNameColor;
     this.ShopNameFont         = settings.ShopNameFont;
 }
コード例 #3
0
        public static void Save()
        {
            // assign default settings to each group if not in the list
            foreach (string groupName in GroupManager.Floors.Items)
            {
                if (GroupExists(groupName) == false)
                {
                    GroupSettings newGroupSettings = new GroupSettings();
                    newGroupSettings.GroupName = groupName;
                    newGroupSettings.GroupType = GroupType.Floor;
                }
            }

            // delete if there is any extra group (may be deleted by the user)

            LoadSave.Save(groupSettingsFileName, Groups, typeof(List <Shop>));
        }
コード例 #4
0
 public static void Load()
 {
     groupSettings = (GroupSettings)LoadSave.Load(groupSettingsFileName, typeof(GroupSettings));
 }