diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2019-04-11 11:24:39 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2019-04-11 11:24:39 +0300 |
| commit | 64aeeb1d2784569e4ebf7c72c660458cf4432eee (patch) | |
| tree | f140fd02302857c6396f50e63ce7891c8862ece8 /Software/Visual_Studio/Scripting/Tango.Scripting.IDE/SolutionItemCommand.cs | |
| parent | 33de6bbb3668c5d1edf9c28ee337058a29331443 (diff) | |
| download | Tango-64aeeb1d2784569e4ebf7c72c660458cf4432eee.tar.gz Tango-64aeeb1d2784569e4ebf7c72c660458cf4432eee.zip | |
Add menu to tree solution
Diffstat (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.IDE/SolutionItemCommand.cs')
| -rw-r--r-- | Software/Visual_Studio/Scripting/Tango.Scripting.IDE/SolutionItemCommand.cs | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/SolutionItemCommand.cs b/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/SolutionItemCommand.cs new file mode 100644 index 000000000..c6627d354 --- /dev/null +++ b/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/SolutionItemCommand.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; + +using System.Text; +using System.Threading.Tasks; +using System.Windows.Media.Imaging; +using Tango.Core.Commands; + +namespace Tango.Scripting.IDE +{ + public class SolutionItemCommand : RelayCommand, ISolutionItemCommand + { + public SolutionItemCommand() : base(()=> { }) + { + Init(); + } + public SolutionItemCommand(Action<object> action) : base(action) + { + Init(); + } + + public SolutionItemCommand(Action action) : base(action) + { + Init(); + } + + public SolutionItemCommand(Action<object> action, Func<object, bool> canExecute) : base(action, canExecute) + { + Init(); + } + + public SolutionItemCommand(Action<object> action, Func<bool> canExecute) : base(action, canExecute) + { + Init(); + } + + public SolutionItemCommand(Action action, Func<object, bool> canExecute) : base(action, canExecute) + { + Init(); + } + + public SolutionItemCommand(Action action, Func<bool> canExecute) : base(action, canExecute) + { + Init(); + } + + private void Init() + { + Commands = new ObservableCollection<ISolutionItemCommand>(); + } + + public String Name { get; set; } + BitmapSource _bImage; + public BitmapSource Image { + get + { + return _bImage; + } + set + { + _bImage = value; + } + } + public ObservableCollection<ISolutionItemCommand> Commands { get; set; } + + } +} |
