Push Changes from other Github

This commit is contained in:
2026-03-09 10:52:42 +01:00
parent c7306e8217
commit ff9add4081
48 changed files with 1857 additions and 1443 deletions

View File

@@ -1,4 +1,5 @@
using System.Windows.Controls;
using Heisig.HMI.AdsManager;
using System.Windows.Controls;
namespace InfineonHMI;
@@ -7,15 +8,25 @@ namespace InfineonHMI;
/// </summary>
public partial class EtchingStation2Page : Page
{
public EtchingStation2Page()
{
InitializeComponent();
// Unloaded += OnUnloaded;
}
public static string AdsVariableName = "GVL_SCADA.stMachine.TrayFeeder";
private void OnUnloaded(object? sender, EventArgs e)
{
var disposable = DataContext as IDisposable;
disposable?.Dispose();
}
public static EtchingStation2PageVM CreateModel(IAdsManager adsManager)
{
return new(adsManager, AdsVariableName);
}
public static EtchingStation2Page CreateView(EtchingStation2PageVM model)
{
return new EtchingStation2Page { DataContext = model };
}
public EtchingStation2Page()
{
InitializeComponent();
}
private void OnUnloaded(object? sender, EventArgs e)
{
var disposable = DataContext as IDisposable;
disposable?.Dispose();
}
}