public override string VisitUser1(AbstractElement element)
        {
            string s;
            User1  user1 = element as User1;

            user1.IsTaken = true;
            return(s = $"User {user1.Name} set new narada *{user1.Narada}* in: {user1.Date} - this date is taken!");
        }
Esempio n. 2
0
 public void Add(AbstractElement element)
 {
     users.Add(element);
 }
Esempio n. 3
0
 public void Remove(AbstractElement customer)
 {
     users.Remove(customer);
 }
Esempio n. 4
0
 public abstract string VisitUser1(AbstractElement element);