From b7c47b51774dcbc6278619ca111260e41b224f0b Mon Sep 17 00:00:00 2001 From: TheJoKlLa Date: Mon, 27 Feb 2023 15:42:24 +0100 Subject: [PATCH] Added: Command Link --- Borepin/Borepin/PageModel/MachinePageModel.cs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Borepin/Borepin/PageModel/MachinePageModel.cs b/Borepin/Borepin/PageModel/MachinePageModel.cs index 6db1a02..db53b54 100644 --- a/Borepin/Borepin/PageModel/MachinePageModel.cs +++ b/Borepin/Borepin/PageModel/MachinePageModel.cs @@ -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 }