Inheritance: System.Windows.Window
コード例 #1
0
ファイル: f_address-book.xaml.cs プロジェクト: sirmax1/coin
 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();
     }
 }
コード例 #2
0
ファイル: f_address-book.xaml.cs プロジェクト: sirmax1/coin
 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();
     }
 }