public SpendingSheetService(BudgetDto budget) { _budget = budget; int rowsNumber = 16 + (_budget.Incomes.Count + 4) + (_budget.Categories.Count * 4) + _budget.Subcategories.Count; int colsNumber = 6 + DateTime.DaysInMonth(_budget.Month.Year, _budget.Month.Month); _googleSheetService = new GoogleSheetService("Spending", 1, rowsNumber, colsNumber, 5, 0, false, GetSheetsColor()); _subcategoriesRowsIndexes = new List <int>(); _subcategoriesRows = new List <CellData>(); _googleSheetService.SetRowHeight(0, 50); _googleSheetService.SetColumnWidth(0, 180); _googleSheetService.SetColumnWidth(1, 110); _googleSheetService.SetColumnWidth(2, 110); _googleSheetService.SetColumnWidth(3, 110); _googleSheetService.SetColumnWidth(4, 100); }