using System.Collections.ObjectModel; using Aitex.Core.UI.MVVM; using VirgoSimulator.Instances; using MECF.Framework.Common.IOCore; namespace VirgoSimulator.Views { public class IoViewModel : 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 IoViewModel(int port, string source, string ioMapPathFile, string module) : base(nameof(IoViewModel)) { Plc = new SimulatorPlc(port, source, ioMapPathFile, module); DIs = Plc.DiItemList; DOs = Plc.DoItemList; AIs = Plc.AiItemList; AOs = Plc.AoItemList; } protected override void Poll() { } } }