示例#1
0
        public void Remove(object value)
        {
            lista.Remove(value);
            CollectionCahngedEventArgs pom = new CollectionCahngedEventArgs(CollectionOperation.Remove, value);

            if (CollectionCahnged != null)
            {
                CollectionCahnged(this, pom);
            }
        }
示例#2
0
        public void Add(object value)
        {
            if (value.GetType().ToString() == "Lab11b.NotifingObject")
            {
                n.NameChanged += p2;
            }
            lista.Add(value);
            CollectionCahngedEventArgs pom = new CollectionCahngedEventArgs(CollectionOperation.Add, value);

            if (CollectionCahnged != null)
            {
                CollectionCahnged(this, pom);
            }
        }
 void fun2(object sender, CollectionCahngedEventArgs arg)
 {
 }