public void CheckForDeletedCharacters() { for (int n = 0; n < Characters.Count; n++) { if (CanDelete(n)) { // Invoca o evento e remove o personagem. DeleteCharacter?.Invoke(Characters[n].AccountId, Characters[n].CharacterId); // Remove da lista? Characters.RemoveAt(n); } } }
private void OnDeleteConfirmed() { DeleteCharacter?.Invoke(this.deleting.Character); OnDeleteCancelled(); }