void OnAddRecipient(object sender, RoutedEventArgs e) { var dlg = new FormAddress(); if (Dialog.ShowDialog(dlg, Window.GetWindow(this))) { Wallet.AddRecipient(dlg.textAddress.Text, dlg.textComment.Text); UpdateRecipients(); } }
void OnEditRecipient(object sender, RoutedEventArgs e) { Address a = GetRecipientSelectedAddress(); var dlg = new FormAddress(); dlg.textAddress.Text = a.Value; dlg.textComment.Text = a.Comment; if (Dialog.ShowDialog(dlg, Window.GetWindow(this))) { Wallet.RemoveRecipient(a.m_iface); Wallet.AddRecipient(dlg.textAddress.Text, dlg.textComment.Text); UpdateRecipients(); } }
private void OnEditRecipient(object sender, RoutedEventArgs e) { Address a = GetRecipientSelectedAddress(); var dlg = new FormAddress(); dlg.textAddress.Text = a.Value; dlg.textComment.Text = a.Comment; if (Dialog.ShowDialog(dlg, this)) { Wallet.RemoveRecipient(a.m_iface); Wallet.AddRecipient(dlg.textAddress.Text, dlg.textComment.Text); UpdateRecipients(); } }
private void OnAddRecipient(object sender, RoutedEventArgs e) { var dlg = new FormAddress(); if (Dialog.ShowDialog(dlg, this)) { Wallet.AddRecipient(dlg.textAddress.Text, dlg.textComment.Text); UpdateRecipients(); } }