1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- 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
- {
- public class OperationOverViewModel : BindableBase
- {
- #region 私有字段
- private bool m_TabIsChecked=true;
- private ModuleInfo m_LP1ModuleInfo;
- private ModuleInfo m_LP2ModuleInfo;
- #endregion
- #region 属性
- public bool TabIsChecked
- {
- get { return m_TabIsChecked; }
- set { SetProperty(ref m_TabIsChecked, value); }
- }
- public ModuleInfo LP1ModuleInfo
- {
- get { return m_LP1ModuleInfo; }
- set { SetProperty(ref m_LP1ModuleInfo, value); }
- }
- public ModuleInfo LP2ModuleInfo
- {
- get { return m_LP2ModuleInfo; }
- set { SetProperty(ref m_LP2ModuleInfo, value); }
- }
- #endregion
- #region 构造函数
- public OperationOverViewModel()
- {
- DispatcherTimer timer = new DispatcherTimer();
- timer.Interval = TimeSpan.FromSeconds(0.5);
- timer.Tick += Timer_Tick;
- timer.Start();
- }
- #endregion
- #region 私有方法
- private void Timer_Tick(object sender, EventArgs e)
- {
- LP1ModuleInfo = ModuleManager.ModuleInfos["LP1"];
- LP2ModuleInfo = ModuleManager.ModuleInfos["LP1"];
- }
- #endregion
- }
- }
|