diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-04-23 17:55:12 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-04-23 17:55:12 +0300 |
| commit | 4c0712fb9ac9ea65b0c66c16639f847307c84f98 (patch) | |
| tree | 9e847a9cf6b92fe53c01cffed83d75195b870eef /Software/Visual_Studio/Scripting/Tango.Scripting.Basic/Script.cs | |
| parent | a440c6477a12a263969a507c2178981642ffb457 (diff) | |
| download | Tango-4c0712fb9ac9ea65b0c66c16639f847307c84f98.tar.gz Tango-4c0712fb9ac9ea65b0c66c16639f847307c84f98.zip | |
Improvements on test designer.
Diffstat (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.Basic/Script.cs')
| -rw-r--r-- | Software/Visual_Studio/Scripting/Tango.Scripting.Basic/Script.cs | 27 |
1 files changed, 26 insertions, 1 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..69bc15468 100644 --- a/Software/Visual_Studio/Scripting/Tango.Scripting.Basic/Script.cs +++ b/Software/Visual_Studio/Scripting/Tango.Scripting.Basic/Script.cs @@ -13,9 +13,32 @@ namespace Tango.Scripting.Basic public class Script : ExtendedObject, IScriptSource { public String Name { get; set; } - public String Code { get; set; } 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 +49,8 @@ namespace Tango.Scripting.Basic [JsonIgnore] public int LoadCount { get; internal set; } + [JsonIgnore] + public int LoadCharCount { get; set; } public static Script New(String file) { |
