using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Caliburn.Micro.Core; namespace EfemDualUI.Views.PMs { public enum ParameterType { Default, //feedback column is textblock, setpoint column is textbox Share, //feedback, setpoint share one readonly column DropDownList //feedback column is textblock, setpoint column is a dropdownlist } public class PMParameter : PropertyChangedBase { public string Name { get; set; } public string Display { get; set; } public ParameterType Type { get; set; } private string _Feedback; public string Feedback { get { return _Feedback; } set { _Feedback = value; NotifyOfPropertyChange("Feedback"); } } private string _Setpoint; public string Setpoint { get { return _Setpoint; } set { _Setpoint = value; NotifyOfPropertyChange("Setpoint"); } } private bool _SetpointSaved; public bool SetpointSaved { get { return _SetpointSaved; } set { _SetpointSaved = value; NotifyOfPropertyChange("SetpointSaved"); } } private bool _SetpointEnabled; public bool SetpointEnabled { get { return _SetpointEnabled; } set { _SetpointEnabled = value; NotifyOfPropertyChange("SetpointEnabled"); } } private List _Selections; public List Selections //for dropdown list { get { return _Selections; } set { _Selections = value; NotifyOfPropertyChange("Selections"); } } } }