Example #1
0
        private void OnUpdatingState(WalletState state)
        {
            lblWalletStatus.Content = WalletStateConverter.Localize(state);

            refreshingTransactionHistory.ResetTime();

            switch (state)
            {
            case WalletState.ConnectedPool:
            case WalletState.ConnectedAndMining:
                imgStatus.Source = new BitmapImage(new Uri(@"/XDagWallet;component/Resources/icon-status-online.png", UriKind.Relative));
                break;

            case WalletState.TransferPending:
                imgStatus.Source = new BitmapImage(new Uri(@"/XDagWallet;component/Resources/icon-status-pending.png", UriKind.Relative));
                break;

            default:
                imgStatus.Source = new BitmapImage(new Uri(@"/XDagWallet;component/Resources/icon-status-offline.png", UriKind.Relative));
                break;
            }

            // Set up a timer to trigger
            refreshWalletDataTimer.Start();
        }
Example #2
0
        private void Load_LocalizedStrings()
        {
            string cultureInfo = walletConfig.ReadOrDefaultCultureInfo;

            Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo(cultureInfo);
            this.Title = string.Format("{0} ({1})", Properties.Strings.WalletWindow_Title, walletConfig.Version);
            this.lblVersion.Content = string.Format(Properties.Strings.WalletWindow_VersionLabel, walletConfig.Version);

            this.lblBalanceTitle.Content = Properties.Strings.WalletWindow_BalanceTitle;
            this.lblAddressTitle.Content = Properties.Strings.WalletWindow_AddressTitle;

            this.btnTransfer.Content     = Properties.Strings.WalletWindow_TransferTitle;
            this.lblWalletStatus.Content = WalletStateConverter.Localize(xdagWallet.State);

            this.tabAccount.Header  = Properties.Strings.WalletWindow_TabAccount;
            this.tabTransfer.Header = Properties.Strings.WalletWindow_TabTransfer;
            this.tabHistory.Header  = Properties.Strings.WalletWindow_TabHistory;

            // Transfer
            this.lblTransferToAddress.Content = Properties.Strings.WalletWindow_Transfer_ToAddress;
            this.lblTransferAmount.Content    = Properties.Strings.WalletWindow_Transfer_Amount;

            // DataGrid for TransactionHistory
            this.tabHistory.Header = Properties.Strings.WalletWindow_TabHistory;
            ////this.biTransactionHistoryLoading.BusyContent = Properties.Strings.WalletWindow_HistoryBusy;
            this.grdBusyIndicatorText.Text = Properties.Strings.WalletWindow_HistoryBusy;

            this.transactionColumn_TimeStamp.Header      = Properties.Strings.WalletWindow_HistoryColumns_TimeStamp;
            this.transactionColumn_Direction.Header      = Properties.Strings.WalletWindow_HistoryColumns_Direction;
            this.transactionColumn_Amount.Header         = Properties.Strings.WalletWindow_HistoryColumns_Amount;
            this.transactionColumn_Status.Header         = Properties.Strings.WalletWindow_HistoryColumns_Status;
            this.transactionColumn_BlockAddress.Header   = Properties.Strings.WalletWindow_HistoryColumns_BlockAddress;
            this.transactionColumn_PartnerAddress.Header = Properties.Strings.WalletWindow_HistoryColumns_PartnerAddress;
        }
Example #3
0
        private void UpdateState(WalletState state)
        {
            ShowStatus(WalletStateConverter.Localize(state));

            if (state == WalletState.ConnectedPool)
            {
                xdagWallet.State = state;

                WalletWindow walletWindow = new WalletWindow(xdagWallet);
                walletWindow.Show();

                this.Close();
            }
        }
Example #4
0
 public string GetLocalizedState()
 {
     return(WalletStateConverter.Localize(this.walletState));
 }