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);
         }
     }
 }
Exemplo n.º 2
0
        private void OnDeleteConfirmed()
        {
            DeleteCharacter?.Invoke(this.deleting.Character);

            OnDeleteCancelled();
        }