using OpenSEMI.ClientBase; using Prism.Mvvm; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Threading; using Venus_MainPages.Unity; namespace Venus_MainPages.ViewModels { internal class TMViewModel : BindableBase { #region 私有字段 //private ModuleInfo m_PMAWafer; private ModuleInfo m_LLAWafer; private ModuleInfo m_LLBWafer; private bool m_TMIsOFFline; private bool m_LLIsOFFline; private WaferInfo m_PMAWafer; #endregion #region 属性 public WaferInfo PMAWafer { get { return m_PMAWafer; } set { SetProperty(ref m_PMAWafer, value); } } public ModuleInfo LLAWafer { get { return m_LLAWafer; } set { SetProperty(ref m_LLAWafer, value); } } public ModuleInfo LLBWafer { get { return m_LLBWafer; } set { SetProperty(ref m_LLBWafer, value); } } public bool TMIsOFFline { get { return m_TMIsOFFline; } set { SetProperty(ref m_TMIsOFFline, value); } } public bool LLIsOFFline { get { return m_LLIsOFFline; } set { SetProperty(ref m_LLIsOFFline, value); } } #endregion #region 命令 #endregion #region 构造函数 public TMViewModel() { DispatcherTimer timer = new DispatcherTimer(); timer.Interval = TimeSpan.FromSeconds(1); timer.Tick += Timer_Tick; timer.Start(); } private void Timer_Tick(object sender, EventArgs e) { LLAWafer = ModuleManager.ModuleInfos["LLA"]; //LLBWafer = ModuleManager.ModuleInfos["LLB"]; PMAWafer = ModuleManager.ModuleInfos["PMA"].WaferManager.Wafers[0]; } #endregion } }