aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/PermissionsViewVM.cs
blob: bf9d1bd2b87aa1cda0ff41172bf820add29f752b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.BL.Entities;
using Tango.MachineStudio.Common.Notifications;

namespace Tango.MachineStudio.DB.ViewModels
{
    public class PermissionsViewVM : DbTableViewModel<Permission>
    {
        public PermissionsViewVM(INotificationProvider notification) : base(notification)
        {
        }
    }
}
n> : ExtendedObject, IProjectItem { private static Dictionary<String, BitmapSource> _imageCache; static ProjectItem() { _imageCache = 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(); } }