Exemplo n.º 1
0
        private BuisenessLogicSSKA()
        {
            progrBar = new WindowProgrBar();

            dataGate    = new CsvToXmlSSKA();
            chartsModel = ChartsModel.GetInstance();
            request     = DataRequest.GetInstance();

            request.DataRequested           += delegate { this.UpdateDataModel(); };
            request.FilterValuesRequested   += delegate { this.FilterData(); };
            request.DataBankUpdateRequested += delegate { UpdateData(); };
            request.ViewDataRequested       += delegate { this.UpdateViewData(); };

            updateChart += delegate { chartsModel.IncomesInfoOverDateRange = GetIncomesInfoOverDateRange(request); };
            updateChart += delegate { chartsModel.IncomesOverDatesRange = GetIncomesOverDatesRange(request); };
            updateChart += delegate { chartsModel.BalanceOverDateRange = GetBalanceOverDateRange(request); };
            updateChart += delegate { chartsModel.ExpensesOverDateRange = GetExpensesOverDateRange(request); };
            updateChart += delegate { chartsModel.ExpensesInfoOverDateRange = GetExpensesInfoOverDateRange(request); };
            updateChart += delegate { chartsModel.ExpensesOverRemiteeGroupsInDateRange = GetExpensesOverRemiteeGroupsInDateRange(request); };
            updateChart += delegate { chartsModel.ExpensesOverRemiteeInDateRange = GetExpensesOverRemiteeInDateRange(request); };
            updateChart += delegate { chartsModel.Summary = GetSummary(request); };
            updateChart += delegate { chartsModel.TransactionsAccounts = GetTransactionsAccounts(request); };

            UpdateDataModel();
        }