diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2020-05-11 23:18:38 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2020-05-11 23:18:38 +0300 |
| commit | c53bba3c1e20af982f7f4774f22e6fa5061db6d8 (patch) | |
| tree | 45a262c62480af463c3a2eaa31cd7befc0aa36d6 /Software/Visual_Studio/Scripting/Tango.Scripting.Basic/Script.cs | |
| parent | 3e98c83bd81875797e8fe954fb31a5a0e817323a (diff) | |
| parent | 995fa3bfa4536e0462e42231328855d2e1a6bfda (diff) | |
| download | Tango-c53bba3c1e20af982f7f4774f22e6fa5061db6d8.tar.gz Tango-c53bba3c1e20af982f7f4774f22e6fa5061db6d8.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.Basic/Script.cs')
| -rw-r--r-- | Software/Visual_Studio/Scripting/Tango.Scripting.Basic/Script.cs | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Scripting/Tango.Scripting.Basic/Script.cs b/Software/Visual_Studio/Scripting/Tango.Scripting.Basic/Script.cs index 753026149..c465292cb 100644 --- a/Software/Visual_Studio/Scripting/Tango.Scripting.Basic/Script.cs +++ b/Software/Visual_Studio/Scripting/Tango.Scripting.Basic/Script.cs @@ -12,10 +12,39 @@ namespace Tango.Scripting.Basic { public class Script : ExtendedObject, IScriptSource { - public String Name { get; set; } - public String Code { get; set; } + 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 @@ -26,6 +55,8 @@ namespace Tango.Scripting.Basic [JsonIgnore] public int LoadCount { get; internal set; } + [JsonIgnore] + public int LoadCharCount { get; set; } public static Script New(String file) { |
