public CashFlowViewModel() : base(NumberOfRowsInCashFlowsGrid) { _contoData = new ContoData(); DepositCommand = new RelayCommand(DepositCommand_Executed); CostCommand = new RelayCommand(CostCommand_Executed); FilterGridCommand = new RelayCommand(FilterGridCommand_Executed); ExportPdf = new RelayCommand(ExportPdf_Executed); AddSelfInvoiceToPrintCommand = new RelayCommand(AddSelfInvoiceToPrintCommand_Executed); GridFilterMonths = new Dictionary <int, string> { { 1, "Gennaio" }, { 2, "Febbraio" }, { 3, "Marzo" }, { 4, "Aprile" }, { 5, "Maggio" }, { 6, "Giugno" }, { 7, "Luglio" }, { 8, "Agosto" }, { 9, "Settembre" }, { 10, "Ottobre" }, { 11, "Novembre" }, { 12, "Dicembre" }, }; var lastDate = _contoData.CashFlowGetLastDateTime(); GridFilterSelectedYear = lastDate.Year; GridFilterSelectedMonth = lastDate.Month; DepositDate = DateTime.Today; CostDate = DateTime.Today; Initialize(OnPropertyChanged, _contoData.CashFlowGetYearMonth, lastDate.Year, lastDate.Month); SelfInvoicePrintButtonVisibility = Visibility.Collapsed; }