private bool?GetState(OnTheFlyResource res) { ActionInstance act = ActionInstanceUtility.Find(ActionType.Interlock, res.Resource.ResourceID); if (act == null) { return(null); } var point = act.GetPoint(); var blockState = GetBlockState(point.Block.BlockID); var result = WagoInterlock.GetPointState(point.PointID, blockState); return(result); }