public void Remove(object value) { lista.Remove(value); CollectionCahngedEventArgs pom = new CollectionCahngedEventArgs(CollectionOperation.Remove, value); if (CollectionCahnged != null) { CollectionCahnged(this, pom); } }
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) { }