コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }