/// <summary> /// Abre o form e carrega o personagem. /// </summary> /// <param name="charname"></param> public void Show(string charname) { Show(); pData = CharacterDB.LoadCharacterData(charname); FillTextbox(); //completa as classes var count = Static.Classes.Count; for (var n = 0; n < count; n++) { list_classes.Items.Add(new DarkListItem(Static.Classes[n].Name)); } //seleciona a classe do usuario var index = Static.FindIndexByID(pData.ClasseID); if (index != -1) { list_classes.SelectItem(index); } }