Files
infineon_cs_hmi/uniper_hmi/UniperHMI/Pages/Views/HotCoolPlatePage.xaml.cs
2026-03-10 09:37:40 +01:00

33 lines
755 B
C#

using Heisig.HMI.AdsManager;
using System.Windows.Controls;
namespace InfineonHMI;
/// <summary>
/// Interaktionslogik für AutomaticModePage.xaml
/// </summary>
public partial class HotCoolPlatePage : Page
{
public static string AdsVariableName = "GVL_SCADA.stMachine";
public static HotCoolPlatePageVM CreateModel(IAdsManager adsManager)
{
return new(adsManager, AdsVariableName);
}
public static HotCoolPlatePage CreateView(HotCoolPlatePageVM model)
{
return new HotCoolPlatePage { DataContext = model };
}
public HotCoolPlatePage()
{
InitializeComponent();
}
private void OnUnloaded(object? sender, EventArgs e)
{
var disposable = DataContext as IDisposable;
disposable?.Dispose();
}
}