Beispiel #1
0
 public void PublicationAlert(User person, string str)
 {
     Console.WriteLine("Уважаемый пользователь {0}, пользователь {1} написал:\n\"{2}\"", this.FullName,person.FullName,str);
 }
Beispiel #2
0
 public void Subscribe(User person)
 {
     this.PublicationAlertEvent += person.PublicationAlert;
 }
Beispiel #3
0
 static void Main(string[] args)
 {                    
     User user1 = new User("Иван","Смирнов",new DateTime(2001,1,1));
     User user2 = new User("Ольга", "Смирнова", new DateTime(2002, 1, 1));
     user1.MakePublication(user1.FullName);
 }