aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/ConnectionLostViewVM.cs
blob: f1f4f69c04b1b7c551129937d13e8eb762a8c328 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.SharedUI;

namespace Tango.MachineStudio.UI.ViewModels
{
    public class ConnectionLostViewVM : DialogViewVM
    {
        public String Exception { get; set; }
    }
}
"k">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()); } } }