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