-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathEventArgs.cs
More file actions
40 lines (34 loc) · 880 Bytes
/
EventArgs.cs
File metadata and controls
40 lines (34 loc) · 880 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace Daniels.Common
{
public class ReadOnlyEventArgs<T1, T2> : EventArgs
{
public readonly T1 Parameter1;// { get; private set; }
public readonly T2 Parameter2;// { get; private set; }
public ReadOnlyEventArgs(T1 param1, T2 param2)
{
Parameter1 = param1;
Parameter2 = param2;
}
}
public class ReadOnlyEventArgs<T> : EventArgs
{
public readonly T Parameter;// { get; private set; }
public ReadOnlyEventArgs(T input)
{
Parameter = input;
}
}
public class EventArgs<T> : EventArgs
{
public T Parameter { get; set; }
public EventArgs(T input)
{
Parameter = input;
}
}
}