diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2019-05-03 10:08:08 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2019-05-03 10:08:08 +0300 |
| commit | ec4baf29ede89bf4290f52578df517dc784cb71c (patch) | |
| tree | edfdf93b1394a15529ee28e57b2b31aa5044fa99 /Software/Visual_Studio/Scripting/Tango.Scripting.IDE/SolutionItemCommand.cs | |
| parent | 12aeb0e61bc3f177a9b85a6067d4909e925c8326 (diff) | |
| parent | 0b593edbbd1ba4072d7a18a9395acdb5b8c21693 (diff) | |
| download | Tango-ec4baf29ede89bf4290f52578df517dc784cb71c.tar.gz Tango-ec4baf29ede89bf4290f52578df517dc784cb71c.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.IDE/SolutionItemCommand.cs')
| -rw-r--r-- | Software/Visual_Studio/Scripting/Tango.Scripting.IDE/SolutionItemCommand.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/SolutionItemCommand.cs b/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/SolutionItemCommand.cs index c6627d354..9fbac01c2 100644 --- a/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/SolutionItemCommand.cs +++ b/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/SolutionItemCommand.cs @@ -1,6 +1,8 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.ComponentModel; +using System.IO; using System.Linq; using System.Text; @@ -10,7 +12,7 @@ using Tango.Core.Commands; namespace Tango.Scripting.IDE { - public class SolutionItemCommand : RelayCommand, ISolutionItemCommand + public class SolutionItemCommand : RelayCommand, ISolutionItemCommand, INotifyPropertyChanged { public SolutionItemCommand() : base(()=> { }) { @@ -53,6 +55,9 @@ namespace Tango.Scripting.IDE public String Name { get; set; } BitmapSource _bImage; + + public event PropertyChangedEventHandler PropertyChanged; + public BitmapSource Image { get { @@ -61,9 +66,14 @@ namespace Tango.Scripting.IDE set { _bImage = value; + RaisePropertyChanged(nameof(Image)); } } public ObservableCollection<ISolutionItemCommand> Commands { get; set; } + protected virtual void RaisePropertyChanged(String propName) + { + PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propName)); + } } } |
