Inheritance: System.Windows.Window
Exemple #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();
            }
        }
Exemple #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();
            }
        }
Exemple #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();
     }
 }
Exemple #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();
     }
 }