Added NullCap check

This commit is contained in:
TheJoKlLa 2021-09-21 23:07:37 +02:00
parent 2bb024fcbc
commit eea1cc47aa

View File

@ -29,12 +29,12 @@ namespace Borepin.Model
State = _Machine.State; State = _Machine.State;
Manager = new UserVisualize(_Machine.Manager); Manager = new UserVisualize(_Machine.Manager);
CanUse = _Machine.Use != null; CanUse = !((UseInterface_Proxy)_Machine.Use).IsNull;
CanInUse = _Machine.Inuse != null; CanInUse = !((InUseInterface_Proxy) _Machine.Inuse).IsNull;
CanTransfer = _Machine.Transfer != null; CanTransfer = !((TransferInterface_Proxy) _Machine.Transfer).IsNull;
CanCheck = _Machine.Check != null; CanCheck = !((CheckInterface_Proxy) _Machine.Check).IsNull;
CanManage = _Machine.Manage != null; CanManage = !((ManageInterface_Proxy) _Machine.Manage).IsNull;
CanAdmin = _Machine.Admin != null; CanAdmin = !((AdminInterface_Proxy) _Machine.Admin).IsNull;
} }
#endregion #endregion