aboutsummaryrefslogtreecommitdiffstatsci
path: root/Drawing2D/src/ListChangedEventArg.cs
blob: 7f83cfaf2deadbb6a2e4ce061f24a34257cf9337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2013-2021  Jean-Philippe Bruyère <jp_bruyere@hotmail.com>
//
// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
using System;
using System.Collections.Generic;

namespace Crow
{
	public class ListChangedEventArg : EventArgs
	{
		public int Index;
		public object Element;
		public ListChangedEventArg (int index, object element)
		{
			Index = index;
			Element = element;
		}
	}
	public class ListClearEventArg : EventArgs
	{
		public IEnumerable<object> Elements;
		public ListClearEventArg (IEnumerable<object> elements)	{
			Elements = elements;
		}
	}
}