aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/CSharpScriptItem.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/CSharpScriptItem.cs')
-rw-r--r--Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/CSharpScriptItem.cs62
1 files changed, 62 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/CSharpScriptItem.cs b/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/CSharpScriptItem.cs
new file mode 100644
index 000000000..0fe375a1f
--- /dev/null
+++ b/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/CSharpScriptItem.cs
@@ -0,0 +1,62 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Media.Imaging;
+using Tango.Scripting.IDE.ProjectItemsViews;
+
+namespace Tango.Scripting.IDE.ProjectItems
+{
+ public class CSharpScriptItem : ProjectItem
+ {
+ public override BitmapSource Image => GetImage("Images/hashtag.png");
+
+ private String _code;
+ public String Code
+ {
+ get { return _code; }
+ set { _code = value; RaisePropertyChangedAuto(); }
+ }
+
+ public override bool CanOpen => true;
+
+ public override FrameworkElement OnGetView()
+ {
+ return new CSharpScriptItemView(this);
+ }
+
+ public CSharpScriptItem() : base()
+ {
+ Commands = new System.Collections.ObjectModel.ObservableCollection<ISolutionItemCommand>()
+ {
+ new SolutionItemCommand(Open) { Name = "Open" , Image = GetImage(@"Images/Open_16x.png")},
+ new SolutionItemCommand(CutItem) { Name = "Cut" , Image = GetImage(@"Images/Cut_16xSM.png")},
+ new SolutionItemCommand(CopyItem) { Name = "Copy" , Image = GetImage(@"Images/copy_16x.png")},
+ new SolutionItemCommand(CopyItem) { Name = "Delete" , Image = GetImage(@"Images/deletered_16.png")},
+ new SolutionItemCommand(RenameItem) { Name = "Rename", Image = GetImage(@"Images/Rename_16x.png") }
+ };
+ }
+
+ private void Open(object obj)
+ {
+
+ }
+
+ private void RenameItem(object obj)
+ {
+
+ }
+
+ private void CutItem(object obj)
+ {
+
+ }
+
+ private void CopyItem()
+ {
+
+ }
+ }
+}