Esempio n. 1
0
        private void MenuItemPayIn_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                fnTxResult  txId  = (fnTxResult)dgTx.SelectedItem;
                PayInWindow payIn = new PayInWindow(tcBitcoin, txId);

                if (payIn.ShowDialog() == true)
                {
                    if (tcBitcoin.TxPayIn(txId.PaymentAddress, txId.TxId, payIn.AccountCode, payIn.CashCode, payIn.PaidOn, payIn.PaymentReference))
                    {
                        Refresh();
                        OnBalance?.Invoke(this, new EventArgs());
                    }
                }
            }
            catch (Exception err)
            {
                MessageBox.Show($"{err.Message}", $"{err.Source}.{err.TargetSite.Name}", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }