diff --git a/Borepin/Borepin/Model/MachineVisualize.cs b/Borepin/Borepin/Model/MachineVisualize.cs index 8aac695..990a1c9 100644 --- a/Borepin/Borepin/Model/MachineVisualize.cs +++ b/Borepin/Borepin/Model/MachineVisualize.cs @@ -80,6 +80,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 @@ -202,6 +203,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 ee2f13d..e82055f 100644 --- a/Borepin/Borepin/Page/MachinePage.xaml +++ b/Borepin/Borepin/Page/MachinePage.xaml @@ -46,6 +46,25 @@ + + +