protected void LeftArrowClickedEvent(object s, EventArgs a) { StartDate = new DateTime(StartDate.Year, StartDate.Month, 1).AddMonths(-1); LeftArrowClicked?.Invoke(s, new DateTimeEventArgs { DateTime = StartDate }); LeftArrowCommand?.Execute(StartDate); }
protected void LeftArrowClickedEvent(object s, EventArgs a) { if (CalendarViewType == DateTypeEnum.Year) { NextPrevYears(false); } else { PreviousMonth(); } LeftArrowClicked?.Invoke(s, new DateTimeEventArgs { DateTime = StartDate }); LeftArrowCommand?.Execute(StartDate); }