From bbbe3e7e2ee9573654b5c87d5e6bfa0fc4c19733 Mon Sep 17 00:00:00 2001 From: TheJoKlLa Date: Wed, 22 Feb 2023 02:06:35 +0100 Subject: [PATCH] Added: Unlock and Identify Button --- Borepin/Borepin/Model/MachineVisualize.cs | 8 +++ Borepin/Borepin/Page/MachinePage.xaml | 19 +++++++ Borepin/Borepin/PageModel/MachinePageModel.cs | 55 +++++++++++++++++++ .../Resources/Text/TextResource.Designer.cs | 9 +++ .../Borepin/Resources/Text/TextResource.resx | 3 + 5 files changed, 94 insertions(+) diff --git a/Borepin/Borepin/Model/MachineVisualize.cs b/Borepin/Borepin/Model/MachineVisualize.cs index 709c7c5..c0f87a4 100644 --- a/Borepin/Borepin/Model/MachineVisualize.cs +++ b/Borepin/Borepin/Model/MachineVisualize.cs @@ -75,6 +75,7 @@ namespace Borepin.Model CanManage = !((ManageInterface_Proxy)_Machine.Manage).IsNull; CanAdmin = !((AdminInterface_Proxy)_Machine.Admin).IsNull; CanNotUseByPermission = State == MachineState.free && !CanUse; + IsLock = !((ProdInterface_Proxy)_Machine.Prodable).IsNull; } #endregion @@ -197,6 +198,13 @@ namespace Borepin.Model get => _CanNotUseByPermission; set => SetProperty(ref _CanNotUseByPermission, value); } + + private bool _IsLock; + public bool IsLock + { + get => _IsLock; + set => SetProperty(ref _IsLock, value); + } #endregion } } diff --git a/Borepin/Borepin/Page/MachinePage.xaml b/Borepin/Borepin/Page/MachinePage.xaml index 99ebf23..7a44c6a 100644 --- a/Borepin/Borepin/Page/MachinePage.xaml +++ b/Borepin/Borepin/Page/MachinePage.xaml @@ -46,6 +46,25 @@ + + +