Inheritance: System.Windows.Window
Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 3
0
 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();
     }
 }
Ejemplo n.º 4
0
 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();
     }
 }