Inheritance: System.Windows.Window
        void OnSendMoney(object sender, RoutedEventArgs argg)
        {
            var dlg = new FormSendMoney();

            dlg.CtlSend.Wallet = SelectedWallet().Wallet;
            Dialog.ShowDialog(dlg, this);
        }
Exemple #2
0
 private void OnSendToRecipient(object sender, IWallet wallet, string address, decimal? amount, string comment)
 {
     var dlg = new FormSendMoney();
     var c = dlg.CtlSend;
     c.textAddress.Text = address;
     c.textComment.Text = comment;
     c.Wallet = wallet;
     if (amount.HasValue)
         c.textAmount.Text = amount.ToString();
     Dialog.ShowDialog(dlg, this);
 }
Exemple #3
0
        private void OnSendToRecipient(object sender, IWallet wallet, string address, decimal?amount, string comment)
        {
            var dlg = new FormSendMoney();
            var c   = dlg.CtlSend;

            c.textAddress.Text = address;
            c.textComment.Text = comment;
            c.Wallet           = wallet;
            if (amount.HasValue)
            {
                c.textAmount.Text = amount.ToString();
            }
            Dialog.ShowDialog(dlg, this);
        }
Exemple #4
0
        public void SendMoney(string netName, string address, decimal amount, string label, string comment)
        {
            var dlg = new FormSendMoney();

            dlg.CtlSend.Wallet = FindWallet(netName).Wallet;
            try {
                dlg.CtlSend.Wallet.AddRecipient(address, label);
            } catch (Exception) {
            }
            if (comment == "")
            {
                comment = label;
            }
            dlg.CtlSend.textAddress.Text = address;
            dlg.CtlSend.textAmount.Text  = amount.ToString();
            dlg.CtlSend.textComment.Text = comment;
            Dialog.ShowDialog(dlg, this);
        }
Exemple #5
0
 void OnSendMoney(object sender, RoutedEventArgs argg)
 {
     var dlg = new FormSendMoney();
     dlg.Wallet = SelectedWallet().Wallet;
     Dialog.ShowDialog(dlg, this);
 }
Exemple #6
0
 public void SendMoney(string netName, string address, decimal amount, string label, string comment)
 {
     var dlg = new FormSendMoney();
     dlg.Wallet = FindWallet(netName).Wallet;
     try {
         dlg.Wallet.AddRecipient(address, label);
     } catch (Exception) {
     }
     if (comment == "")
         comment = label;
     dlg.textAddress.Text = address;
     dlg.textAmount.Text = amount.ToString();
     dlg.textComment.Text = comment;
     Dialog.ShowDialog(dlg, this);
 }
Exemple #7
0
 private void OnSendMoney(object sender, RoutedEventArgs e)
 {
     Address a = GetRecipientSelectedAddress();
     var dlg = new FormSendMoney();
     dlg.textAddress.Text = a.Value;
     dlg.textComment.Text = a.Comment;
     dlg.Wallet = Wallet;
     Dialog.ShowDialog(dlg, this);
 }