aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/ScriptingTestFunctions.cs
blob: 745f0ca15bc357f5453c00917d9661f9cc825416 (plain) (blame)
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ShiftOS.Engine.Scripting;

namespace ShiftOS.WinForms
{
    [Exposed("scriptingtests")]
    public class ScriptingTestFunctions
    {
        public int testVar = 127;

        public void testFunction()
        {
            Console.WriteLine("testFunction() called.");
        }

        public string testFunctionWithReturn(string arg)
        {
            return arg + "!";
        }

        public event Action testEvent;

        public string testProperty { get; set; }

        public void invokeTestEvent()
        {
            testEvent?.Invoke();
        }
    }
}