protected void RightArrowClickedEvent(object s, EventArgs a) { StartDate = new DateTime(StartDate.Year, StartDate.Month, 1).AddMonths(1); RightArrowClicked?.Invoke(s, new DateTimeEventArgs { DateTime = StartDate }); RightArrowCommand?.Execute(StartDate); }
protected void RightArrowClickedEvent(object s, EventArgs a) { if (CalendarViewType == DateTypeEnum.Year) { NextPrevYears(true); } else { NextMonth(); } RightArrowClicked?.Invoke(s, new DateTimeEventArgs { DateTime = StartDate }); RightArrowCommand?.Execute(StartDate); }