void OnSendMoney(object sender, RoutedEventArgs argg) { var dlg = new FormSendMoney(); dlg.CtlSend.Wallet = SelectedWallet().Wallet; Dialog.ShowDialog(dlg, this); }
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); }
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); }
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); }
void OnSendMoney(object sender, RoutedEventArgs argg) { var dlg = new FormSendMoney(); dlg.Wallet = SelectedWallet().Wallet; Dialog.ShowDialog(dlg, this); }
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); }
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); }