diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2019-04-14 11:29:34 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2019-04-14 11:29:34 +0300 |
| commit | e8c5d02db6b9a92b1ff378c1606b6cef6ce69141 (patch) | |
| tree | 031716dd1e4ce96b23334573d3773c43d1f1bb70 /Software/Visual_Studio/Scripting/Tango.Scripting.IDE/Solution.cs | |
| parent | 987aa1e6a68a68a9251e59402d52f08eb2a6b198 (diff) | |
| parent | 641171e30368056bd97fd53c8dade56889739bc3 (diff) | |
| download | Tango-e8c5d02db6b9a92b1ff378c1606b6cef6ce69141.tar.gz Tango-e8c5d02db6b9a92b1ff378c1606b6cef6ce69141.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.IDE/Solution.cs')
| -rw-r--r-- | Software/Visual_Studio/Scripting/Tango.Scripting.IDE/Solution.cs | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/Solution.cs b/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/Solution.cs index cd7806698..b0c192003 100644 --- a/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/Solution.cs +++ b/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/Solution.cs @@ -1,21 +1,47 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; -using System.Text; +using System.IO; using System.Threading.Tasks; +using System.Windows.Media.Imaging; +using Tango.SharedUI.Helpers; + namespace Tango.Scripting.IDE { - public class Solution + public class Solution :ISolution { public ObservableCollection<IProject> Projects { get; set; } - public string Name{get; set;} + + public string Name { get; set; } + public string SolutionLocation { get; set; } + + public string WorkingFolder => Path.GetDirectoryName(SolutionLocation); + + public BitmapSource Image => ResourceHelper.GetImageFromResources("Images/NewFileCollection_16x.png"); + + public bool CanOpen => false; + + public ObservableCollection<ISolutionItemCommand> Commands { get; set; } + + public event EventHandler AddProjectEvent; public Solution() { + Name = "Solution"; Projects = new ObservableCollection<IProject>(); + Commands = new ObservableCollection<ISolutionItemCommand> + { + new SolutionItemCommand(AddProject) { Name = "Add New Project..." } + }; + } + /// <summary> + /// Adds Project Dialog. + /// </summary> + public void AddProject() + { + AddProjectEvent?.Invoke(this, new EventArgs()); } } } |
