How to handle add to list event?

后端 未结 10 2392
伪装坚强ぢ
伪装坚强ぢ 2020-11-29 22:55

I have a list like this:

List list = new List

How to handle adding new position to this list?

When

10条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-29 23:45

    What you need is a class that has events for any type of modification that occurs in the collection. The best class for this is BindingList. It has events for every type of mutation which you can then use to modify your event list.

    • http://msdn.microsoft.com/en-us/library/ms132679.aspx

提交回复
热议问题