forked from ahyahy/OneScriptForms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAction.cs
More file actions
26 lines (21 loc) · 784 Bytes
/
Action.cs
File metadata and controls
26 lines (21 loc) · 784 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
using ScriptEngine.Machine.Contexts;
using ScriptEngine.Machine;
namespace osf
{
[ContextClass ("КлДействие", "ClAction")]
public class ClAction : AutoContext<ClAction>
{
public ClAction(IRuntimeContextInstance script, string methodName, IValue param = null)
{
Script = script;
MethodName = methodName;
Parameter = param;
}
[ContextProperty("ИмяМетода", "MethodName")]
public string MethodName { get; set; }
[ContextProperty("Параметр", "Parameter")]
public IValue Parameter { get; set; }
[ContextProperty("Сценарий", "Script")]
public IRuntimeContextInstance Script { get; set; }
}
}