blob: bef79db47ef226dbaf7c2bd74f9c7a6c786d707e (
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
25
26
27
28
29
30
31
32
33
|
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media.Imaging;
using Tango.FileSystem;
namespace Tango.FSE.Procedures
{
public class ProcedureResource
{
public String Name { get; set; }
public byte[] Data { get; set; }
private BitmapSource _icon;
[JsonIgnore]
public BitmapSource Icon
{
get
{
if (_icon == null)
{
var fakeFileItem = new FileItem() { Path = Name };
_icon = fakeFileItem.SmallIcon;
}
return _icon;
}
}
}
}
|