private void miTransactions_Click(object sender, RoutedEventArgs e) { Views.TransactionsWindow window = new TransactionsWindow(); this.CpCurrentScreenContent.Content = window.Content; ResetMenuButtons(); this.miTransactions.Background = Brushes.LightSlateGray; this.LblContentTitle.Content = "Manage Transactions"; }
private void btnTransactions_Click(object sender, RoutedEventArgs e) { TransactionsWindow transactionWindow = new TransactionsWindow(MonthDisplayed); transactionWindow.Owner = this; transactionWindow.Show(); transactionWindow.Owner = null; this.Close(); }
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(); }