18 lines
510 B
C#
18 lines
510 B
C#
using CommunityToolkit.Mvvm.Input;
|
|
using CommunityToolkit.Mvvm.Messaging;
|
|
using Heisig.HMI.AdsManager;
|
|
|
|
namespace InfineonHMI.OwnControls;
|
|
|
|
public sealed partial class UnitControlButtonVM : SMUBaseVM
|
|
{
|
|
public UnitControlButtonVM() : base() { }
|
|
|
|
public UnitControlButtonVM(IAdsManager adsManager, string variableName) : base(adsManager, variableName) { }
|
|
|
|
[RelayCommand]
|
|
private void Clicked()
|
|
{
|
|
WeakReferenceMessenger.Default.Send(new NavigateMessage(_variableName, typeof(UnitDetailsControl)));
|
|
}
|
|
} |