public void setMonths(List <string> months) { this.months.AddRange(months.ToArray()); string currentMonth = miscFunctions.ToMonthName(DateTime.Now).ToUpper(); if (!this.months.Contains(currentMonth)) { this.months.Add(currentMonth); controller = new MainScreenController(Util.CONNECTION_DETAILS.CONNECITION_STRING, ""); controller.newMonthStarted(this.apartment); } }
public void setYears(List <string> years) { this.years.AddRange(years); string currentYear = DateTime.Now.Year.ToString(); if (!this.years.Contains(currentYear)) { this.years.Add(currentYear); controller = new MainScreenController(Util.CONNECTION_DETAILS.CONNECITION_STRING, ""); controller.newMonthStarted(this.apartment); } // increment dues controller.setMonths(this, 2019, this.apartment); }