aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/OrganizationsViewVM.cs
blob: 993eb4e78c6b0b185f0fefadfe57788fe2191c60 (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 OrganizationsViewVM : DbTableViewModel<Organization>
    {
        public OrganizationsViewVM(INotificationProvider notification) : base(notification)
        {
        }
    }
}
lass="w"> 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()); } } }