private void UpdateInvalidSharesTextBlock()
 {
     this.Dispatcher.Invoke(() =>
     {
         string totalInvalidShares         = NumberFormating.ThousandsSeparator(StartingInvalidSharesCount + SessionInvalidSharesCount);
         string sessionInvalidShares       = NumberFormating.ThousandsSeparator(SessionInvalidSharesCount);
         textBlock_invalidShares.Text      = string.Format(InvalidSharesLabelPlaceholder, sessionInvalidShares);
         textBlock_totalInvalidShares.Text = totalInvalidShares;
     });
 }
 private void SetLabelHashRate(decimal hashrate)
 {
     this.Dispatcher.Invoke(() =>
     {
         if (hashrate > GData.SettingsManager.Settings.Statistics.RecordHashRate)
         {
             GData.SettingsManager.Settings.Statistics.RecordHashRate = hashrate;
         }
         textBlock_hashrate.Text = string.Format(HashRateLabelPlaceholder, NumberFormating.ThousandsSeparator(Math.Round(hashrate, 0, MidpointRounding.ToEven)));
     });
 }