diff options
| author | Mirta <mirta@twine-s.com> | 2020-12-30 16:39:52 +0200 |
|---|---|---|
| committer | Mirta <mirta@twine-s.com> | 2020-12-30 16:39:52 +0200 |
| commit | 00a491d93733d4625ad329b2ba8237f445364b3f (patch) | |
| tree | 4b24c6fa78d7648f4bb7cefafa464bb0b063fec4 /Software/Visual_Studio/Scripting/Tango.Scripting.Basic/Script.cs | |
| parent | 124ad4150f80c6846fdee41dbbda9848c105f6e5 (diff) | |
| download | Tango-00a491d93733d4625ad329b2ba8237f445364b3f.tar.gz Tango-00a491d93733d4625ad329b2ba8237f445364b3f.zip | |
merge
Diffstat (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.Basic/Script.cs')
| -rw-r--r-- | Software/Visual_Studio/Scripting/Tango.Scripting.Basic/Script.cs | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/Software/Visual_Studio/Scripting/Tango.Scripting.Basic/Script.cs b/Software/Visual_Studio/Scripting/Tango.Scripting.Basic/Script.cs deleted file mode 100644 index c465292cb..000000000 --- a/Software/Visual_Studio/Scripting/Tango.Scripting.Basic/Script.cs +++ /dev/null @@ -1,80 +0,0 @@ -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Tango.Core; -using Tango.Scripting.Core; - -namespace Tango.Scripting.Basic -{ - public class Script : ExtendedObject, IScriptSource - { - private String _name; - public String Name - { - get { return _name; } - set { _name = value; RaisePropertyChangedAuto(); } - } - - public bool IsEntryPoint { get; set; } - - private String _code; - public String Code - { - get { return _code; } - set - { - if (_code != null && _code != value) - { - IsChanged = true; - } - - _code = value; - RaisePropertyChangedAuto(); - } - } - - private bool _isChanged; - [JsonIgnore] - public bool IsChanged - { - get { return _isChanged; } - set { _isChanged = value; RaisePropertyChangedAuto(); } - } - - private bool _isSelected; - [JsonIgnore] - public bool IsSelected - { - get { return _isSelected; } - set { _isSelected = value; RaisePropertyChangedAuto(); } - } - - [JsonIgnore] - public int LoadCount { get; internal set; } - [JsonIgnore] - public int LoadCharCount { get; set; } - - public static Script New(String file) - { - return new Script() - { - Name = Path.GetFileName(file), - Code = System.IO.File.ReadAllText(file), - }; - } - - public static Script New(String name, String code, bool isEntryPoint = false) - { - return new Script() - { - Name = name, - Code = code, - IsEntryPoint = isEntryPoint, - }; - } - } -} |
