1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- using Prism.Commands;
- using Prism.Mvvm;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Venus_MainPages.ViewModels
- {
- internal class GasLeakCheckViewModel : BindableBase
- {
- #region 私有字段
- private List<string> m_LeakCheckMode;
- private int m_LeakCheckModeSelectedIndex;
- private int m_VentTime;
- private int m_CheckTime;
- private bool[] m_GasIsCheck=new bool[8];
- #endregion
- #region 属性
- public List<string> LeakCheckMode
- {
- get { return m_LeakCheckMode; }
- set { SetProperty(ref m_LeakCheckMode, value); }
- }
- public int LeakCheckModeSelectedIndex
- {
- get { return m_LeakCheckModeSelectedIndex; }
- set { SetProperty(ref m_LeakCheckModeSelectedIndex, value); }
- }
- public int VentTime
- {
- get { return m_VentTime; }
- set { SetProperty(ref m_VentTime, value); }
- }
- public int CheckTime
- {
- get { return m_CheckTime; }
- set { SetProperty(ref m_CheckTime, value); }
- }
- public bool[] GasIsCheck
- {
- get { return m_GasIsCheck; }
- set { SetProperty(ref m_GasIsCheck, value); }
- }
- #endregion
- #region 命令
- private DelegateCommand _CheckCommand;
- public DelegateCommand CheckCommand =>
- _CheckCommand ?? (_CheckCommand = new DelegateCommand(OnCheck));
- #endregion
- #region 构造函数
- public GasLeakCheckViewModel()
- {
- m_LeakCheckMode = new List<string>() { "ChamberOnly", "ChamberAndGasLine", "ChamberAndGasLineAndFAC" };
- m_LeakCheckModeSelectedIndex = 0;
- m_VentTime = 120;
- m_CheckTime = 180;
- }
- #endregion
- #region 命令方法
- private void OnCheck()
- {
-
- }
- #endregion
- }
- }
|