public void UpdateNewUnit(string _method, int _depth)
 {
     PageModel.Unit unit = new PageModel.Unit();
     unit.uuid  = newUUID();
     unit.block = _method;
     unit.depth = _depth;
     modelPage.UpdateAddUnit(unit);
 }
 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 AddUnit(PageModel.PageStatus _status, PageModel.Unit _unit)
 {
     view.RefreshAddUnit(_status, _unit);
 }