Merge branch 'fix/unlock' into 'main'

Added: Command Link

See merge request fabinfra/fabaccess/borepin!79
This commit is contained in:
TheJoKlLa 2023-02-27 14:48:16 +00:00
commit c3fb9cd5fa

View File

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