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 @@ + + +