Пример #1
0
 public Form1()
 {
     InitializeComponent();
     myProfile = new Friend("Josh", listBoxMyFeed);
     friend1 = new Friend("John", listBoxFriend1Display);
     friend2 = new Friend("Jane", listBoxFriend2Display);
 }
Пример #2
0
 // follows new friend
 public void AddFriend(Friend friend)
 {
     friend.Subject.AddObserver(this);
 }
Пример #3
0
 //lets someone follow you
 public void AcceptFriend(Friend friend)
 {
     pushService.AddObserver(friend);
 }