Beispiel #1
0
 /// <summary>
 /// Event handler for Used Addresses Updated by Ethereum Service.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event.</param>
 protected void OnUsedAddressesUpdated(object sender, EthereumServiceEventArgs args)
 {
     this.InvokeOnUiThreadIfRequired(() => {
         this.usedAddressesValueLinkLabel.Text  = args.UsedAccounts;
         this.propabilityPerPageValueLabel.Text = Convert.ToString(25 * EthereumService.PercentageUsed(args.UsedAccounts, EthereumService.TotalAddresses));
     });
 }