Exemple #1
0
 public Friend(ListBox listBox, User user)
 {
     this.listBox = listBox;
     this.user = user;
     statusStack = new Stack<Status>();
     user.AddObserver(this);
 }
 public UserFriendManager(ListBox listBox1, ListBox listBox2, ListBox listBox3, ListBox listBox4)
 {
     user = new User();
     friend1 = new Friend(listBox1, user);
     friend2 = new Friend(listBox2, user);
     friend3 = new Friend(listBox3, user);
     friend4 = new Friend(listBox4, user);
 }