public MainWindow() { InitializeComponent(); Loaded += fillDataGrid; Payment.TextChanged += Payment_TextChanged; wallet = new WalletWindow(); }
private void Button_Click(object sender, RoutedEventArgs e) { WalletWindow newWallet = new WalletWindow(wallet); newWallet.ShowDialog(); }
public WalletWindow(WalletWindow wallet) { this.Content = wallet.Content; }