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/ProjectItems | |
| 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/ProjectItems')
3 files changed, 58 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 index cf4811047..e53f90ef3 100644 --- a/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/CSharpScriptItem.cs +++ b/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/CSharpScriptItem.cs @@ -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" }, + new SolutionItemCommand(CutItem) { Name = "Cut" , Image = GetImage(@"Images/Cut_16xSM.png")}, + new SolutionItemCommand(CopyItem) { Name = "Copy" }, + new SolutionItemCommand(CopyItem) { Name = "Delete" }, + new SolutionItemCommand(RenameItem) { Name = "Rename" } + }; + } + + 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; |
