Example #1
0
        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);
        }
Example #2
0
 protected override void OnAppearing()
 {
     VM             = new BlockVM();
     BindingContext = VM;
 }