using Heisig.HMI.AdsManager; using System.Windows.Controls; namespace InfineonHMI; /// /// Interaktionslogik für AutomaticModePage.xaml /// public partial class EtchingStation2Page : Page { public static string AdsVariableName = "GVL_SCADA.stMachine.stEtcher2"; 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(); } }