示例#1
0
        public SMObserver(ListBox listBox, SMSubject smSubject)
        {
            currStatus = null;

            this.listBox = listBox;
            this.smSubject = smSubject;

            smSubject.AddObserver(this);
        }
示例#2
0
        public SMObserver(ListBox listBox, SMSubject smSubject)
        {
            currStatus = null;

            this.listBox   = listBox;
            this.smSubject = smSubject;

            smSubject.AddObserver(this);
        }
示例#3
0
 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);
 }
示例#4
0
 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);
 }
示例#5
0
 public FriendObserver(ListBox listBox, SMSubject smSubject)
     : base(listBox, smSubject)
 {
 }
示例#6
0
 public UserObserver(ListBox listBox, SMSubject smSubject) : base(listBox, smSubject)
 {
 }
示例#7
0
 public UserObserver(ListBox listBox, SMSubject smSubject)
     : base(listBox, smSubject)
 {
 }
示例#8
0
 public FriendObserver(ListBox listBox, SMSubject smSubject) : base(listBox, smSubject)
 {
 }