コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: klinden/Budget
 private void NewTransactionButton_Click(object sender, RoutedEventArgs e)
 {
     var window = new TransactionEntryWindow();
     window.CallingWindow = this;
     window.Show();
 }
コード例 #2
0
 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();
     }
 }