Push Changes from other Github
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Windows.Controls;
|
||||
using Heisig.HMI.AdsManager;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace InfineonHMI;
|
||||
|
||||
@@ -7,13 +8,24 @@ namespace InfineonHMI;
|
||||
/// </summary>
|
||||
public partial class NIOStationPage : Page
|
||||
{
|
||||
public NIOStationPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
// Unloaded += OnUnloaded;
|
||||
}
|
||||
public static string AdsVariableName = "GVL_SCADA.stMachine.TrayFeeder";
|
||||
|
||||
private void OnUnloaded(object? sender, EventArgs e)
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user