aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/ViewModels/LogDetailsViewVM.cs
blob: 873fdd6a1cb8d037adbf30c0d88f5ec274e36a68 (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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Logging;
using Tango.SharedUI;

namespace Tango.MachineStudio.Logging.ViewModels
{
    public class LogDetailsViewVM : DialogViewVM
    {
        public LogItemBase Log { get; set; }

        public LogDetailsViewVM()
        {

        }

        public LogDetailsViewVM(LogItemBase log) : this()
        {
            Log = log;
        }
    }
}
="o">= new Dictionary<string, BitmapSource>(); } public string Name { get; set; } public ObservableCollection<IProjectItem> Items { get; set; } public ProjectItem() { 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(); } }