diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-13 15:19:55 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-13 15:19:55 +0200 |
| commit | 2a51f05523c1397b77eca5e5188520919205638c (patch) | |
| tree | edc40c2ca201be6e881ea6746469fb5cb412e8bc /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/DBViewModels/MultiComboVM.cs | |
| parent | 2c376ac3ae651dd6c6592cc4cbf72768dc97a93d (diff) | |
| download | Tango-2a51f05523c1397b77eca5e5188520919205638c.tar.gz Tango-2a51f05523c1397b77eca5e5188520919205638c.zip | |
Successfully separated Machine Studio to modules...
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/DBViewModels/MultiComboVM.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/DBViewModels/MultiComboVM.cs | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/DBViewModels/MultiComboVM.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/DBViewModels/MultiComboVM.cs deleted file mode 100644 index 280eab923..000000000 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/DBViewModels/MultiComboVM.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Tango.SharedUI; - -namespace Tango.MachineStudio.UI.ViewModels.DBViewModels -{ - public class MultiComboVM<T> : EntityViewModel<T> - { - private Action _onSelectionChanged; - - public event EventHandler SelectionChanged; - - public MultiComboVM(T entity) : base(entity) - { - - } - - public MultiComboVM(T entity, Action onSelectionChanged) : this(entity) - { - _onSelectionChanged = onSelectionChanged; - } - - private bool _isSelected; - - public bool IsSelected - { - get { return _isSelected; } - set { _isSelected = value; RaisePropertyChangedAuto(); OnSelectionChanged(); } - } - - protected virtual void OnSelectionChanged() - { - if (_onSelectionChanged != null) - { - _onSelectionChanged(); - } - - SelectionChanged?.Invoke(this, new EventArgs()); - } - } -} |
