Push Changes from Techcrafters Repo
This commit is contained in:
@@ -5,38 +5,48 @@ using Heisig.HMI.AdsManager;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using TwinCAT.TypeSystem;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
using Common;
|
||||
using InfineonHMI.Model;
|
||||
namespace InfineonHMI
|
||||
namespace InfineonHMI;
|
||||
|
||||
public sealed partial class TrayFeederPageVM : ObservableValidator, IDisposable
|
||||
{
|
||||
public sealed partial class TrayFeederPageVM : ObservableValidator, IDisposable
|
||||
{
|
||||
private readonly string? _variableName;
|
||||
private readonly string? _variableName;
|
||||
|
||||
private readonly IAdsManager? _adsManager;
|
||||
private readonly IAdsManager? _adsManager;
|
||||
|
||||
public TrayFeederPageVM()
|
||||
{
|
||||
|
||||
}
|
||||
[ObservableProperty] private PackMLControlVM? trayfeederOutPackMLControlVm;
|
||||
[ObservableProperty] private PackMLControlVM? trayfeederInPackMLControlVm;
|
||||
|
||||
public TrayFeederPageVM(IAdsManager adsManager, string variableName)
|
||||
{
|
||||
_adsManager = adsManager;
|
||||
_variableName = variableName;
|
||||
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()
|
||||
{
|
||||
public void Dispose()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user