diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-04-11 19:40:25 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-04-11 19:40:25 +0300 |
| commit | e3cd087cbe1b6c62df2beac4f6351bc20013726c (patch) | |
| tree | 0be80f9892fe1f10f6b50cd38d5e6a5811d20a7e /Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems | |
| parent | 2aa2afca5b09d465e8bf683af232cfe366abf7d4 (diff) | |
| parent | 3c6ab0ddb3f0ae70f4a30b7899b256a703d9a50b (diff) | |
| download | Tango-e3cd087cbe1b6c62df2beac4f6351bc20013726c.tar.gz Tango-e3cd087cbe1b6c62df2beac4f6351bc20013726c.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems')
3 files changed, 59 insertions, 1 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 index cf4811047..0fe375a1f 100644 --- a/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/CSharpScriptItem.cs +++ b/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/CSharpScriptItem.cs @@ -11,7 +11,7 @@ namespace Tango.Scripting.IDE.ProjectItems { public class CSharpScriptItem : ProjectItem { - public override BitmapSource Image => GetImage("Images/CSharpScriptItem.png"); + public override BitmapSource Image => GetImage("Images/hashtag.png"); private String _code; public String Code @@ -26,5 +26,37 @@ namespace Tango.Scripting.IDE.ProjectItems { 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 index 0e66fd241..1493d7cbc 100644 --- a/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/ReferenceAssembliesItem.cs +++ b/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/ReferenceAssembliesItem.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -13,6 +14,10 @@ namespace Tango.Scripting.IDE.ProjectItems public ReferenceAssembliesItem() { Name = "References"; + Commands = new ObservableCollection<ISolutionItemCommand> + { + new SolutionItemCommand(AddReference) { Name = "Add Reference..." } + }; } public override BitmapSource Image => GetImage("Images/Reference.png"); @@ -23,5 +28,10 @@ namespace Tango.Scripting.IDE.ProjectItems } 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 index e9cd1e8f2..87a9f8efa 100644 --- a/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/ReferenceAssemblyItem.cs +++ b/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/ReferenceAssemblyItem.cs @@ -14,6 +14,22 @@ namespace Tango.Scripting.IDE.ProjectItems 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; |
