Ejemplo n.º 1
0
        private void btnTransactions_Click(object sender, RoutedEventArgs e)
        {
            TransactionsWindow transactionWindow = new TransactionsWindow(MonthDisplayed);

            transactionWindow.Owner = this;
            transactionWindow.Show();
            transactionWindow.Owner = null;
            this.Close();
        }
Ejemplo n.º 2
0
        private void MenuItem_Transactions_OnClick(object sender, RoutedEventArgs e)
        {
            IEnumerable <TransactionViewModel> transactions = Injector.Get <ITransactionStorage>()
                                                              .GetAll()
                                                              .Select(transaction => new TransactionViewModel(transaction));
            var transactionWindow = new TransactionsWindow(transactions);

            transactionWindow.Show();
        }