Added: Command Link

This commit is contained in:
TheJoKlLa 2023-02-27 15:42:24 +01:00
parent 7877d53f0b
commit b7c47b5177

View File

@ -34,6 +34,9 @@ namespace Borepin.PageModel
ForceBlockMachineCommand = new DelegateCommand(ForceBlockMachineCommandExecute);
ForceDisableMachineCommand = new DelegateCommand(ForceDisableMachineCommandExecute);
OpenWikiCommand = new DelegateCommand(OpenWikiCommandExecute);
UnlockLockCommand = new DelegateCommand(UnlockLockCommandExecute);
IdentifyLockCommand = new DelegateCommand(IdentifyLockCommandExecute);
}
#endregion
@ -247,8 +250,6 @@ namespace Borepin.PageModel
public async void UnlockLockCommandExecute()
{
IsBusy = true;
if (_API.IsConnected)
{
try
@ -261,8 +262,6 @@ namespace Borepin.PageModel
Log.Debug("RPC Connection Loss");
}
}
IsBusy = false;
}
private ICommand _IdentifyLockCommand;
@ -274,8 +273,6 @@ namespace Borepin.PageModel
public async void IdentifyLockCommandExecute()
{
IsBusy = true;
if (_API.IsConnected)
{
try
@ -288,8 +285,6 @@ namespace Borepin.PageModel
Log.Debug("RPC Connection Loss");
}
}
IsBusy = false;
}
#endregion
}