public StatementViewModel(UnitOfWork UnitOfWork, StatementView view, List<Month> MonthList, int SelectMonthId)
 {
     _selectedMonthId = SelectMonthId;
     _MonthList = MonthList;
    
     _instanceWindow = view;
     _UnitOfWork = UnitOfWork;
     _statementList = _UnitOfWork.StatementDAO.getAll().ToList();
     CurentStatement = _statementList.Where(x => x.MonthId == _selectedMonthId).FirstOrDefault();
 }
        private void DoShowStatementCmd()
        {
            StatementView StatementView = new StatementView();
            StatementViewModel StatementVM = new StatementViewModel(_UnitOfWork,
                                                                    StatementView, 
                                                                    _MonthList, 
                                                                    _selectedMonthId);
            StatementView.DataContext = StatementVM;

            StatementView.ShowDialog();

            if (StatementView.DialogResult.HasValue && StatementView.DialogResult.Value)
            {
                RefreshList(_selectedMonthId);
            }

        }