aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems')
-rw-r--r--Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/CSharpScriptItem.cs62
-rw-r--r--Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/ReferenceAssembliesItem.cs37
-rw-r--r--Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/ReferenceAssemblyItem.cs40
3 files changed, 139 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()
+ {
+
+ }
+ }
+}
diff --git a/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/ReferenceAssembliesItem.cs b/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/ReferenceAssembliesItem.cs
new file mode 100644
index 000000000..1493d7cbc
--- /dev/null
+++ b/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/ReferenceAssembliesItem.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Media.Imaging;
+
+namespace Tango.Scripting.IDE.ProjectItems
+{
+ public class ReferenceAssembliesItem : ProjectItem
+ {
+ public ReferenceAssembliesItem()
+ {
+ Name = "References";
+ Commands = new ObservableCollection<ISolutionItemCommand>
+ {
+ new SolutionItemCommand(AddReference) { Name = "Add Reference..." }
+ };
+ }
+
+ public override BitmapSource Image => GetImage("Images/Reference.png");
+
+ public override FrameworkElement OnGetView()
+ {
+ return null;
+ }
+
+ public override bool CanOpen => false;
+
+ private void AddReference()
+ {
+
+ }
+ }
+}
diff --git a/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/ReferenceAssemblyItem.cs b/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/ReferenceAssemblyItem.cs
new file mode 100644
index 000000000..87a9f8efa
--- /dev/null
+++ b/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/ReferenceAssemblyItem.cs
@@ -0,0 +1,40 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Media.Imaging;
+
+namespace Tango.Scripting.IDE.ProjectItems
+{
+ public class ReferenceAssemblyItem : ProjectItem
+ {
+ public String Path { get; set; }
+ public override BitmapSource Image => GetImage("Images/Reference.png");
+
+ public ReferenceAssemblyItem()
+ {
+ Commands = new ObservableCollection<ISolutionItemCommand>
+ {
+ new SolutionItemCommand(Remove) { Name = "Remove" }
+ };
+ }
+ /// <summary>
+ /// Removes the specified object from References.
+ /// </summary>
+ private void Remove(object obj)
+ {
+ throw new NotImplementedException();
+ }
+
+
+ public override FrameworkElement OnGetView()
+ {
+ return null;
+ }
+
+ public override bool CanOpen => false;
+ }
+}