Example #1
0
        void ShowTxInfo(Tx tx)
        {
            if (tx == null)
            {
                return;
            }
            var dlg = new DialogTextInfo();

            dlg.Title         = "Transaction Info";
            dlg.textInfo.Text = string.Format("DateTime:  {0}\nValue:   {1}\nFee:  {6}\nConfirmations: {2}\nTo:   {3}\nComment:  {4}\nHash:   {5}", tx.Timestamp, tx.m_iTx.Amount, tx.Confirmations.ToString(), tx.Address + " " + tx.m_iTx.Address.Comment, tx.m_iTx.Comment, tx.Hash, tx.Fee);
            dlg.Width         = 600;
            dlg.Height        = 200;

            switch (Wallet.CurrencySymbol)
            {
            case "GRS":
                dlg.Hyperlink.NavigateUri = new Uri(string.Format("https://chainz.cryptoid.info/{0}/tx.dws?{1}", Wallet.CurrencySymbol.ToLower(), tx.Hash));
                dlg.Hyperlink.Inlines.Add("Block Explorer");
                dlg.Hyperlink.RequestNavigate += (sender, e) => { Process.Start(e.Uri.ToString()); };
                break;

            default:
                dlg.Hyperlink.IsEnabled = false;
                break;
            }

            Dialog.ShowDialog(dlg, FormMain.I);
        }
Example #2
0
        void ShowTxInfo(Tx tx)
        {
            var dlg = new DialogTextInfo();

            dlg.Title         = "Transaction Info";
            dlg.textInfo.Text = string.Format("DateTime:  {0}\nValue:   {1}\nFee:  {6}\nConfirmations: {2}\nTo:   {3}\nComment:  {4}\nHash:   {5}", tx.Timestamp, tx.m_iTx.Amount, tx.Confirmations.ToString(), tx.Address + " " + tx.m_iTx.Address.Comment, tx.m_iTx.Comment, tx.Hash, tx.Fee);
            dlg.Width         = 600;
            dlg.Height        = 200;
            Dialog.ShowDialog(dlg, this);
        }
Example #3
0
        public void UpdateTransactions()
        {
            ITransaction iSelectedTx = null;

            if (lv.SelectedItem != null)
            {
                iSelectedTx = (lv.SelectedItem as Tx).m_iTx;
            }
            Transactions.Clear();
            foreach (var tx in Wallet.Transactions)
            {
                var x = new Tx()
                {
                    m_iTx = tx
                };
                Transactions.Add(x);
                if (iSelectedTx == tx)
                {
                    lv.SelectedItem = x;
                }
            }
        }
Example #4
0
 public void UpdateTransactions()
 {
     ITransaction iSelectedTx = null;
     if (lv.SelectedItem != null)
         iSelectedTx = (lv.SelectedItem as Tx).m_iTx;
     Transactions.Clear();
     foreach (var tx in Wallet.Transactions) {
         var x = new Tx() { m_iTx = tx };
         Transactions.Add(x);
         if (iSelectedTx == tx)
             lv.SelectedItem = x;
     }
 }
Example #5
0
 void ShowTxInfo(Tx tx)
 {
     var dlg = new DialogTextInfo();
     dlg.Title = "Transaction Info";
     dlg.textInfo.Text = string.Format("DateTime:  {0}\nValue:   {1}\nFee:  {6}\nConfirmations: {2}\nTo:   {3}\nComment:  {4}\nHash:   {5}", tx.Timestamp, tx.m_iTx.Amount, tx.Confirmations.ToString(), tx.Address + " " + tx.m_iTx.Address.Comment, tx.m_iTx.Comment, tx.Hash, tx.Fee);
     Dialog.ShowDialog(dlg, this);
 }
Example #6
0
        void ShowTxInfo(Tx tx)
        {
            if (tx == null)
                return;
            var dlg = new DialogTextInfo();
            dlg.Title = "Transaction Info";
            dlg.textInfo.Text = string.Format("DateTime:  {0}\nValue:   {1}\nFee:  {6}\nConfirmations: {2}\nTo:   {3}\nComment:  {4}\nHash:   {5}", tx.Timestamp, tx.m_iTx.Amount, tx.Confirmations.ToString(), tx.Address + " " + tx.m_iTx.Address.Comment, tx.m_iTx.Comment, tx.Hash, tx.Fee);
            dlg.Width = 600;
            dlg.Height = 200;

            switch (Wallet.CurrencySymbol) {
                case "GRS":
                    dlg.Hyperlink.NavigateUri = new Uri(string.Format("https://chainz.cryptoid.info/{0}/tx.dws?{1}", Wallet.CurrencySymbol.ToLower(), tx.Hash));
                    dlg.Hyperlink.Inlines.Add("Block Explorer");
                    dlg.Hyperlink.RequestNavigate += (sender, e) => { Process.Start(e.Uri.ToString()); };
                    break;
                default:
                    dlg.Hyperlink.IsEnabled = false;
                    break;
            }

            Dialog.ShowDialog(dlg, FormMain.I);
        }