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