public SMObserver(ListBox listBox, SMSubject smSubject) { currStatus = null; this.listBox = listBox; this.smSubject = smSubject; smSubject.AddObserver(this); }
public Form1() { InitializeComponent(); smSubject = new SMSubject(); mainUser = new UserObserver(listMainPage, smSubject); friend1 = new FriendObserver(listFriend1, smSubject); friend2 = new FriendObserver(listFriend2, smSubject); friend3 = new FriendObserver(listFriend3, smSubject); friend4 = new FriendObserver(listFriend4, smSubject); }
public FriendObserver(ListBox listBox, SMSubject smSubject) : base(listBox, smSubject) { }
public UserObserver(ListBox listBox, SMSubject smSubject) : base(listBox, smSubject) { }