コード例 #1
0
        private void LoadTransactions(SupportedTransactionTypes transactionsType)
        {
            var transactionsFilePath = GetTransactionsFilePath();

            if (string.IsNullOrWhiteSpace(transactionsFilePath))
            {
                return;
            }

            var transactions           = _transactionsManager.CreateTransactionsFromFile(transactionsFilePath, transactionsType);
            var observableTransactions = new ObservableCollection <ITransaction>(transactions);

            Transactions = observableTransactions;

            LineGraphViewModel        = new LineGraphViewModel(Transactions);
            QuickInfoPageViewModel    = new QuickInfoPageViewModel(Transactions);
            TransactionsListViewModel = new TransactionsListViewModel(Transactions);
            PieChartViewModel         = new PieChartViewModel(Transactions);
        }