private void cmbGroup_SelectedIndexChanged(object sender, EventArgs e) { listingViewGroupCtrl1.Visible = true; if (cmbGroup.SelectedItem != null) { this.settings = GroupSettingsManager.GetGroupSettings((string)cmbGroup.SelectedItem); } LoadSettings(); }
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; }
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>)); }
public static void Load() { groupSettings = (GroupSettings)LoadSave.Load(groupSettingsFileName, typeof(GroupSettings)); }