using AutomaticApp.Common;
using AutomaticApp.Model;
using AutomaticApp.Models;
using Communication;
using System;
using System.Collections.Generic;
using System.IO.Ports;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AutomaticApp.ViewModels
{
///
/// 系统控制
///
public class ControlPageViewModel : NotifyBase
{
//static public Switch_State SS1 { get; set; } = new Switch_State();
//static public State_FeedBack SFB1 { get; set; } = new State_FeedBack();
#region 开关
public CommandBase Switch { set; get; }
#endregion
public ControlPageViewModel()
{
this.Switch = new CommandBase();
this.Switch.DoExcute = new Action