aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/Projects/UnitTestProject.cs
blob: e5510ad457ca66f576b03790f52ece7c6c6970be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media.Imaging;

namespace Tango.Scripting.IDE.Projects
{
    public class UnitTestProject : CSharpProject
    {
        public override BitmapSource Image { get; }

        public override Task Build()
        {
            throw new NotImplementedException();
        }

        public override Task Run()
        {
            throw new NotImplementedException();
        }
    }
}
lass="p">() { _imageCache = new Dictionary<string, BitmapSource>(); } public string Name { get; set; } public ObservableCollection<IProjectItem> Items { get; set; } public ObservableCollection<ISolutionItemCommand> Commands { get ; set; } public ProjectItem():base() { Items = new ObservableCollection<IProjectItem>(); } public abstract BitmapSource Image { get; } public abstract FrameworkElement OnGetView(); private FrameworkElement GetView() { return OnGetView(); } protected static BitmapSource GetImage(String name) { if (_imageCache.ContainsKey(name)) { return _imageCache[name]; } else { var image = ResourceHelper.GetImageFromResources(name); _imageCache.Add(name, image); return image; } } public abstract bool CanOpen { get; } public FrameworkElement View => GetView(); } }