diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-04-22 02:08:25 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-04-22 02:08:25 +0300 |
| commit | 499e0a03bb41e2330a47ccca83e6e6dfe7c5a634 (patch) | |
| tree | 5d5d7866e33c1ae8a55cfa67be65848a25be7ab4 /Software/Visual_Studio/Scripting/Tango.Scripting.Test/MainWindowVM.cs | |
| parent | 97a784b6ce43960bdb92465b08f26d3562a4f202 (diff) | |
| download | Tango-499e0a03bb41e2330a47ccca83e6e6dfe7c5a634.tar.gz Tango-499e0a03bb41e2330a47ccca83e6e6dfe7c5a634.zip | |
Scripting.
Diffstat (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.Test/MainWindowVM.cs')
| -rw-r--r-- | Software/Visual_Studio/Scripting/Tango.Scripting.Test/MainWindowVM.cs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Scripting/Tango.Scripting.Test/MainWindowVM.cs b/Software/Visual_Studio/Scripting/Tango.Scripting.Test/MainWindowVM.cs index 203196fda..f57de886f 100644 --- a/Software/Visual_Studio/Scripting/Tango.Scripting.Test/MainWindowVM.cs +++ b/Software/Visual_Studio/Scripting/Tango.Scripting.Test/MainWindowVM.cs @@ -12,13 +12,19 @@ using Tango.SharedUI; namespace Tango.Scripting.Test { + public class TestContext : IContext + { + + } + public class MainWindowVM : ViewModel { + public RelayCommand AddScriptCommand { get; set; } public RelayCommand RunCommand { get; set; } - private Project _project; - public Project Project + private Project<TestContext> _project; + public Project<TestContext> Project { get { return _project; } set { _project = value; RaisePropertyChangedAuto(); } @@ -26,7 +32,8 @@ namespace Tango.Scripting.Test public MainWindowVM() { - Project = Project.New("untitled", Encoding.Default.GetString(Properties.Resources.template)); + Project = Project<TestContext>.New("untitled"); + Project.Scripts.Add(Script.New("main.csx", Encoding.Default.GetString(Properties.Resources.template), true)); AddScriptCommand = new RelayCommand(AddScriptFile); RunCommand = new RelayCommand(RunProject); } |
