Example #1
0
        public void AggiungiPersonaggio(Personaggio a)
        {
            foreach (Personaggio b in Personaggi)
            {
                if (b.Nome == a.Nome)
                {
                    throw new Exception("Personaggio giĆ  esistente");
                }
            }

            Personaggi.Add(a);
        }
Example #2
0
 private void AddPersonaggio(string item) { Personaggi.Add(item); }