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,22 @@ namespace InfineonHMI;
|
||||
/// </summary>
|
||||
public partial class KukaRobotPage : Page
|
||||
{
|
||||
public KukaRobotPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
// Unloaded += OnUnloaded;
|
||||
}
|
||||
public static KukaRobotPageVM CreateModel(IAdsManager adsManager)
|
||||
{
|
||||
return new(adsManager);
|
||||
}
|
||||
|
||||
private void OnUnloaded(object? sender, EventArgs e)
|
||||
public static KukaRobotPage CreateView(KukaRobotPageVM model)
|
||||
{
|
||||
return new KukaRobotPage { DataContext = model };
|
||||
}
|
||||
|
||||
public KukaRobotPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void OnUnloaded(object? sender, EventArgs e)
|
||||
{
|
||||
var disposable = DataContext as IDisposable;
|
||||
disposable?.Dispose();
|
||||
|
||||
Reference in New Issue
Block a user