using CommunityToolkit.Mvvm.ComponentModel; using HMIToolkit; using System.ComponentModel.DataAnnotations; using Heisig.HMI.AdsManager; using CommunityToolkit.Mvvm.Input; using TwinCAT.TypeSystem; using System.Collections.ObjectModel; using Common; using InfineonHMI.Model; namespace InfineonHMI; public sealed partial class TrayFeederPageVM : ObservableValidator, IDisposable { private readonly string? _variableName; private readonly IAdsManager? _adsManager; [ObservableProperty] private PackMLControlVM? trayfeederOutPackMLControlVm; [ObservableProperty] private PackMLControlVM? trayfeederInPackMLControlVm; public TrayFeederPageVM() { TrayfeederInPackMLControlVm = new(); TrayfeederOutPackMLControlVm = new(); TrayfeederInPackMLControlVm.STitle = "Trayfeeder IN"; TrayfeederOutPackMLControlVm.STitle = "Trayfeeder OUT"; } public TrayFeederPageVM(IAdsManager adsManager, string variableName) { _adsManager = adsManager; _variableName = variableName; TrayfeederInPackMLControlVm = new(_adsManager, "GVL_SCADA.stMachine.stTrayFeederIn.stStationCmds"); TrayfeederOutPackMLControlVm = new(_adsManager, "GVL_SCADA.stMachine.stTrayFeederOut.stStationCmds"); TrayfeederInPackMLControlVm.STitle = "Trayfeeder IN"; TrayfeederOutPackMLControlVm.STitle = "Trayfeeder OUT"; } public void Dispose() { } }