private void dgBudgetStatus_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (dgBudgetStatus.SelectedItem != null && dgBudgetStatus.SelectedItem is CategoryStatus) { Category selectedCategory = ((CategoryStatus)dgBudgetStatus.SelectedItem).RelatedCategory; var transactionLogWindow = new TransactionLogWindow(selectedCategory); transactionLogWindow.CallingWindow = this; transactionLogWindow.Show(); } }
private void TransactionLogButton_Click(object sender, RoutedEventArgs e) { var window = new TransactionLogWindow(); window.CallingWindow = this; window.Show(); }