private void NewTransactionButton_Click(object sender, RoutedEventArgs e) { var window = new TransactionEntryWindow(); window.CallingWindow = this; window.Show(); }
private void dgTransactionLog_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (dgTransactionLog.SelectedItem != null && dgTransactionLog.SelectedItem is Transaction) { var transactionEntryWindow = new TransactionEntryWindow(((Transaction)dgTransactionLog.SelectedItem).Guid); transactionEntryWindow.CallingWindow = this; transactionEntryWindow.Show(); } }