using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BPASmartClient.Academy.ViewModel { public class ParameterSetViewModel : NotifyBase { public ParameterSetViewModel() { Enum.GetNames(typeof(ProjectType)).ToList().ForEach(name => { projectNames.Add(name); }); } public ObservableCollection projectNames { get; set; } = new ObservableCollection(); public DevicePar Par { get { return _mPar; } set { _mPar = value; OnPropertyChanged(); } } private DevicePar _mPar = Json.Data; //public BPARelayCommand SaveCommand { get; set; } = new BPARelayCommand(() => { Json.Save(); }); } }