Exemplo n.º 1
0
        public BalanceViewModel()
        {
            SingleCurrentAccount currentAccount = SingleCurrentAccount.GetInstance();

            CurrentAccount = currentAccount.Account;
            UnitOfWork     = new UnitOfWork();
            Histories      = new List <History>();
            GetHistories();

            CreateCommand.CheckRepeatHistories();

            Balance           = GetBalance(Histories);
            UpdateViewCommand = new UpdateViewCommand(MainWindow.MainView);
            RefreshHistoryCollectionView();
            DeleteCommand     = new DeleteCommand(this);
            LinkToEditCommand = new LinkToEditCommand();
        }