diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-19 18:09:36 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-19 18:09:36 +0200 |
| commit | 240fc978fb3327ff7e5bc0c7a06e1b8cc8de4aca (patch) | |
| tree | 3774c50f3818564633685c0d8c5f1f767cd18f92 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters | |
| parent | a794a5d088b425d7b41f87d7c3a43b904249e11e (diff) | |
| download | Tango-240fc978fb3327ff7e5bc0c7a06e1b8cc8de4aca.tar.gz Tango-240fc978fb3327ff7e5bc0c7a06e1b8cc8de4aca.zip | |
Working Developer Module...
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/DbRmlViewToEntityConverter.cs | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/DbRmlViewToEntityConverter.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/DbRmlViewToEntityConverter.cs deleted file mode 100644 index 1fe3e5ab0..000000000 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/DbRmlViewToEntityConverter.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Data; -using Tango.Integration.Observables; -using Tango.MachineStudio.Developer.ViewModels; - -namespace Tango.MachineStudio.Developer.Converters -{ - public class DbRmlViewToEntityConverter : IValueConverter - { - public object Convert(object value, Type targetType, object parameter, CultureInfo culture) - { - if (value != null) - { - DBViewContextWrapper<Rml> db = value as DBViewContextWrapper<Rml>; - return db; - } - - return null; - - } - - public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) - { - if (value != null) - { - Rml entity = value as Rml; - return new DBViewContextWrapper<Rml>(entity); - } - - return null; - } - } -} |
