From 240fc978fb3327ff7e5bc0c7a06e1b8cc8de4aca Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 19 Feb 2018 18:09:36 +0200 Subject: Working Developer Module... --- .../ViewModels/DBViewContextWrapper.cs | 36 ---------------------- 1 file changed, 36 deletions(-) delete mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/DBViewContextWrapper.cs (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/DBViewContextWrapper.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/DBViewContextWrapper.cs deleted file mode 100644 index 21611a493..000000000 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/DBViewContextWrapper.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Tango.Integration.Observables; - -namespace Tango.MachineStudio.Developer.ViewModels -{ - public class DBViewContextWrapper where T : class, IObservableEntity - { - public T EditEntity { get; set; } - - public ObservablesEntitiesAdapter Adapter { get; set; } - - public DBViewContextWrapper() - { - Adapter = ObservablesEntitiesAdapter.Instance; - } - - public DBViewContextWrapper(T entity) : this() - { - EditEntity = entity; - } - - public static implicit operator DBViewContextWrapper(T entity) - { - return new DBViewContextWrapper(entity); - } - - public static implicit operator T(DBViewContextWrapper instance) - { - return instance.EditEntity; - } - } -} -- cgit v1.3.1