/// <summary> /// 构造函数 /// </summary> /// <param name="action">改变行为</param> /// <param name="newItem">新项</param> /// <param name="oldItem">旧项</param> public ChartCollectionChangedEventArgs(ChartCollectionChangedAction action, T newItem, T oldItem) { this.Action = action; if (newItem != null) { this.NewItems = new List <T>() { newItem }; } if (oldItem != null) { this.OldItems = new List <T>() { oldItem }; } }
/// <summary> /// 构造函数 /// </summary> /// <param name="action">改变行为</param> /// <param name="newItems">新项集合</param> /// <param name="oldItems">旧项集合</param> public ChartCollectionChangedEventArgs(ChartCollectionChangedAction action, List <T> newItems, List <T> oldItems) { this.Action = action; this.NewItems = newItems; this.OldItems = oldItems; }