1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- 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<string> _Selections;
- public List<string> Selections //for dropdown list
- {
- get { return _Selections; }
- set { _Selections = value; NotifyOfPropertyChange("Selections"); }
- }
- }
- }
|