private void calendarUpdate(object sender, PseudoMain.OnTickEventArgs e) { int thisTick = e.tick; CurrentWeek++; if (CurrentWeek > 4) { CurrentWeek -= 4; CurrentMonth++; if ((int)CurrentMonth == 3) { CurrentSeason = Seasons.Spring; } else if ((int)CurrentMonth == 6) { CurrentSeason = Seasons.Summer; } else if ((int)CurrentMonth == 9) { CurrentSeason = Seasons.Fall; } else if ((int)CurrentMonth == 12) { CurrentSeason = Seasons.Winter; } else if ((int)CurrentMonth > 12) { CurrentMonth = Months.January; CurrentYear++; } } seasonDisplay.text = CurrentSeason.ToString(); dateDisplay.text = "Week " + CurrentWeek + " of " + CurrentMonth + ", Year " + CurrentYear; }
public void updatePanelEvent(object sender, PseudoMain.OnTickEventArgs e) { updatePanel(); }