public BlockVM GetBlock(int blockIndex) { if (blockIndex < 0 || blockIndex > _blockchain.Count) { throw new Exception($"Block not found[Index='{blockIndex}']"); } var block = _blockchain[blockIndex]; var blockInfo = BlockVM.FromModel(block); return(blockInfo); }
protected override void OnAppearing() { VM = new BlockVM(); BindingContext = VM; }