public static void AddToOwnCharacterList(string name) { foreach (var c in ManageSystem.GetAllCharacter()) { if (c.Name == name) { ownSkin.Add(c); InsertIntoOwnCharacter(c); return; } } }
public void LoadAllCharacter() { this.flpShop.Controls.Clear(); foreach (var character in ManageSystem.GetAllCharacter()) { ItemForm item = new ItemForm(this); item.ChangeInfo(character.ID, character.Name, character.Price); item.TopLevel = false; item.FormBorderStyle = FormBorderStyle.None; item.Show(); if (ManageUserAction.CheckExistCharacter(character)) { item.ChangeStatus(); } flpShop.Controls.Add(item); } }