aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/HardwareVersionsViewVM.cs
blob: a9d5462a6473eb02cf38028affceb63bf7ce1dc6 (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 HardwareVersionsViewVM : DbTableViewModel<HardwareVersion>
    {
        public HardwareVersionsViewVM(INotificationProvider notification) : base(notification)
        {
        }
    }
}
n class="w"> public class SharedResourceDictionary : ResourceDictionary { /// <summary> /// Internal cache of loaded dictionaries /// </summary> public static Dictionary<Uri, ResourceDictionary> _sharedDictionaries = new Dictionary<Uri, ResourceDictionary>(); /// <summary> /// Local member of the source uri /// </summary> private Uri _sourceUri; /// <summary> /// Gets or sets the uniform resource identifier (URI) to load resources from. /// </summary> public new Uri Source { get { return _sourceUri; } set { _sourceUri = value; if (!_sharedDictionaries.ContainsKey(value)) { // If the dictionary is not yet loaded, load it by setting // the source of the base class base.Source = value; // add it to the cache _sharedDictionaries.Add(value, this); } else { // If the dictionary is already loaded, get it from the cache MergedDictionaries.Add(_sharedDictionaries[value]); } } } } }