private void MenuItemProperties_Click(object sender, RoutedEventArgs e) { fnChangeResult change = (fnChangeResult)dgChange.SelectedItem; ChangePropertiesWindow propertiesWindow = new ChangePropertiesWindow(change, tcBitcoin); if (propertiesWindow.ShowDialog() == true) { Refresh(); OnBalance?.Invoke(this, new EventArgs()); } }
private void MenuItemProperties_Click(object sender, RoutedEventArgs e) { try { Clipboard.Clear(); fnTxResult txId = (fnTxResult)dgTx.SelectedItem; fnChangeResult change = tcBitcoin.NodeCash.fnChange(txId.CashAccountCode, txId.KeyName, txId.ChangeTypeCode) .Where(tb => tb.PaymentAddress == txId.PaymentAddress) .Select(tb => tb) .First(); var changeProperties = new ChangePropertiesWindow(change, tcBitcoin); if (changeProperties.ShowDialog() == true) { Refresh(); } } catch (Exception err) { MessageBox.Show($"{err.Message}", $"{err.Source}.{err.TargetSite.Name}", MessageBoxButton.OK, MessageBoxImage.Error); } }