From b41347f1528e5e34d8c8c8ef2c5b6b63876098f1 Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Thu, 11 Apr 2019 16:07:21 +0300 Subject: added icons to menu, solution for setting icons dynamically to context menu --- .../Tango.Scripting.IDE/ProjectItems/CSharpScriptItem.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.IDE/ProjectItems/CSharpScriptItem.cs') 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 e53f90ef3..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 @@ -31,11 +31,11 @@ namespace Tango.Scripting.IDE.ProjectItems { Commands = new System.Collections.ObjectModel.ObservableCollection() { - new SolutionItemCommand(Open) { Name = "Open" }, + 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" }, - new SolutionItemCommand(CopyItem) { Name = "Delete" }, - new SolutionItemCommand(RenameItem) { Name = "Rename" } + 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") } }; } -- cgit v1.3.1