diff options
| author | Michael <[email protected]> | 2017-03-02 08:52:55 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-03-02 08:53:01 -0500 |
| commit | 6fa7a0837381e92ecca62faa19708b4d8a1e1515 (patch) | |
| tree | e64c1f5d162d22a71ff47dfacdede9a7c9ddba5a /ShiftOS.WinForms/ScriptingTestFunctions.cs | |
| parent | 85068729a6ba7188f33723d6345b1a556c88c0ce (diff) | |
| download | shiftos_thereturn-6fa7a0837381e92ecca62faa19708b4d8a1e1515.tar.gz shiftos_thereturn-6fa7a0837381e92ecca62faa19708b4d8a1e1515.tar.bz2 shiftos_thereturn-6fa7a0837381e92ecca62faa19708b4d8a1e1515.zip | |
Optimize screensavers
Diffstat (limited to 'ShiftOS.WinForms/ScriptingTestFunctions.cs')
| -rw-r--r-- | ShiftOS.WinForms/ScriptingTestFunctions.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/ScriptingTestFunctions.cs b/ShiftOS.WinForms/ScriptingTestFunctions.cs new file mode 100644 index 0000000..745f0ca --- /dev/null +++ b/ShiftOS.WinForms/ScriptingTestFunctions.cs @@ -0,0 +1,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(); + } + } +} |
