示例#1
0
 public void Detach(Shop product)
 {
     //For way 1 lets assign detach the observers with subjects
     list.Remove(product);
 }
示例#2
0
 public void Detach2(Shop product)
 {
     //For way 2 lets assign detach the observers with subjects
     OnStatusUpdate -= new StatusUpdate(product.Update);
 }
示例#3
0
 public void Attach(Shop product)
 {
     //For way 1 lets assign attach the observers with subjects
     list.Add(product);
 }