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;
Manager = new UserVisualize(_Machine.Manager);
CanUse = _Machine.Use != null;
CanInUse = _Machine.Inuse != null;
CanTransfer = _Machine.Transfer != null;
CanCheck = _Machine.Check != null;
CanManage = _Machine.Manage != null;
CanAdmin = _Machine.Admin != null;
CanUse = !((UseInterface_Proxy)_Machine.Use).IsNull;
CanInUse = !((InUseInterface_Proxy) _Machine.Inuse).IsNull;
CanTransfer = !((TransferInterface_Proxy) _Machine.Transfer).IsNull;
CanCheck = !((CheckInterface_Proxy) _Machine.Check).IsNull;
CanManage = !((ManageInterface_Proxy) _Machine.Manage).IsNull;
CanAdmin = !((AdminInterface_Proxy) _Machine.Admin).IsNull;
}
#endregion