Esempio n. 1
0
 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();
     }
 }
Esempio n. 2
0
 private void TransactionLogButton_Click(object sender, RoutedEventArgs e)
 {
     var window = new TransactionLogWindow();
     window.CallingWindow = this;
     window.Show();
 }