Coin.CtlRecipients.OnEditRecipient C# (CSharp) Method

OnEditRecipient() public method

public OnEditRecipient ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void
        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();
            }
        }