public void RefreshBlocks(BlockModel.BlockStatus _status)
 {
     CustomElementModel.CustomElementStatus statusElement = _status.Access(CustomElementModel.CustomElementStatus.NAME) as CustomElementModel.CustomElementStatus;
     foreach (BlockModel.Block block in _status.blocks)
     {
         addBlock(block, statusElement);
     }
 }
 public void RefreshAddUnit(PageModel.PageStatus _status, PageModel.Unit _unit)
 {
     BlockModel.BlockStatus statusBlock = _status.Access(BlockModel.BlockStatus.NAME) as BlockModel.BlockStatus;
     CustomElementModel.CustomElementStatus statusElement = statusBlock.Access(CustomElementModel.CustomElementStatus.NAME) as CustomElementModel.CustomElementStatus;
     BlockModel.Block block = statusBlock.blocks.Find((_item) => {
         return(_item.method.Equals(_unit.block));
     });
     addBlock(_unit.uuid, block, _unit.variants, statusElement);
 }
 public void RefreshAddUnits(PageModel.PageStatus _status, List <PageModel.Unit> _units)
 {
     destroyActiveChildren(uiWorkbench.templateExpression.parent.gameObject);
     BlockModel.BlockStatus statusBlock = _status.Access(BlockModel.BlockStatus.NAME) as BlockModel.BlockStatus;
     CustomElementModel.CustomElementStatus statusElement = statusBlock.Access(CustomElementModel.CustomElementStatus.NAME) as CustomElementModel.CustomElementStatus;
     foreach (PageModel.Unit unit in _units)
     {
         BlockModel.Block block = statusBlock.blocks.Find((_item) => {
             return(_item.method.Equals(unit.block));
         });
         addBlock(unit.uuid, block, unit.variants, statusElement);
     }
 }