using Aitex.Common.Util; using Aitex.Core.UI.MVVM; using MECF.Framework.Common.IOCore; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace athosSimulator.IO { class IOSimulatorViewModel : TimerViewModelBase { public SimulatorPlc Plc { get; set; } public ObservableCollection DIs { get; set; } public ObservableCollection DOs { get; set; } public ObservableCollection AIs { get; set; } public ObservableCollection AOs { get; set; } public IOSimulatorViewModel(int port, string source, string ioMapPathFile, string module) : base("") { //Plc = new SimulatorPlc(6375, "Simulator->IO", PathManager.GetCfgDir() + "_ioDefineCardNew.xml", "IO"); // //DIs = Plc.DiItemList; //DOs = Plc.DoItemList; //AIs = Plc.AiItemList; //AOs = Plc.AoItemList; } protected override void Poll() { } } }