aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/SolutionItemCommand.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.IDE/SolutionItemCommand.cs')
-rw-r--r--Software/Visual_Studio/Scripting/Tango.Scripting.IDE/SolutionItemCommand.cs69
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; }
+
+ }
+}