52 lines
1.3 KiB
C#
52 lines
1.3 KiB
C#
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, _variableName + "In.stStationCmds");
|
|
TrayfeederOutPackMLControlVm = new(_adsManager, _variableName + "Out.stStationCmds");
|
|
|
|
TrayfeederInPackMLControlVm.STitle = "Trayfeeder IN";
|
|
TrayfeederOutPackMLControlVm.STitle = "Trayfeeder OUT";
|
|
}
|
|
|
|
|
|
|
|
public void Dispose()
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} |