コード例 #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);
        }
コード例 #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);
        }
コード例 #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;
                }
            }
        }
コード例 #4
0
ファイル: f_transactions.xaml.cs プロジェクト: sirmax1/coin
 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;
     }
 }
コード例 #5
0
ファイル: f_transactions.xaml.cs プロジェクト: sirmax1/coin
 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);
 }
コード例 #6
0
ファイル: c_transactions.xaml.cs プロジェクト: ufasoft/coin
        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);
        }