forked from ahyahy/OneScriptForms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEventArgs.cs
More file actions
54 lines (46 loc) · 1.29 KB
/
EventArgs.cs
File metadata and controls
54 lines (46 loc) · 1.29 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
using System;
using ScriptEngine.Machine.Contexts;
using ScriptEngine.Machine;
using System.Reflection;
namespace osf
{
public class EventArgs
{
public ClEventArgs dll_obj;
public string EventString = "";
public dynamic Parameter;
public dynamic Sender;
public EventArgs()
{
Sender = null;
Parameter = null;
}
}
[ContextClass ("КлАргументыСобытия", "ClEventArgs")]
public class ClEventArgs : AutoContext<ClEventArgs>
{
public ClEventArgs()
{
EventArgs EventArgs1 = new EventArgs();
EventArgs1.dll_obj = this;
Base_obj = EventArgs1;
}
public ClEventArgs(EventArgs p1)
{
EventArgs EventArgs1 = p1;
EventArgs1.dll_obj = this;
Base_obj = EventArgs1;
}
public EventArgs Base_obj;
[ContextProperty("Отправитель", "Sender")]
public IValue Sender
{
get { return OneScriptForms.RevertObj(Base_obj.Sender); }
}
[ContextProperty("Параметр", "Parameter")]
public IValue Parameter
{
get { return (IValue)Base_obj.Parameter; }
}
}
}