Ejemplo n.º 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            FixWindow.Fix(this);

            AddressStats = SupportXmrAPI.GetAddressStats();
            Timer.Tick  += this.Timer_Tick;
            this.UpdateLabels();
        }
Ejemplo n.º 2
0
 private void Timer_ApiUpdate_Tick(object sender, EventArgs e)
 {
     this.RefreshApi();
     if (SupportXmrAPI != null)
     {
         AddressStats stats = SupportXmrAPI.GetAddressStats();
         this.Dispatcher.Invoke(() =>
         {
             if (stats.AmountDue >= 0.01m)
             {
                 textBlock_withdrawLink.Visibility = Visibility.Visible;
             }
             textBlock_xmrEarnings.Text = string.Format(XmrEarningsLabelPlaceholder, stats.AmountDue);
         });
     }
 }