refactor: 将Framework库和RT、UI放在同一个解决方案中。

This commit is contained in:
SL
2026-06-01 17:48:28 +08:00
parent 1948f4290d
commit b73d39a6b1
4331 changed files with 506148 additions and 49363 deletions
@@ -0,0 +1,33 @@
using System.Collections.ObjectModel;
using Aitex.Core.UI.MVVM;
using MECF.Framework.Common.IOCore;
namespace MECF.Framework.Simulator.Core.IoProviders
{
public class IOViewModel : TimerViewModelBase
{
public SimulatorIO Plc { get; set; }
public ObservableCollection<NotifiableIoItem> DiItemList { get; set; }
public ObservableCollection<NotifiableIoItem> DoItemList { get; set; }
public ObservableCollection<NotifiableIoItem> AiItemList { get; set; }
public ObservableCollection<NotifiableIoItem> AoItemList { get; set; }
public IOViewModel(int port, string source, string ioMapPathFile) : base(nameof(IOViewModel))
{
Plc = new SimulatorIO(port, source, ioMapPathFile);
DiItemList = Plc.DiItemList;
DoItemList = Plc.DoItemList;
AiItemList = Plc.AiItemList;
AoItemList = Plc.AoItemList;
}
protected override void Poll()
{
}
}
}