private void AddItem(int id, int day, int month, string monthName, int year, int weekday, string weekdayname, int weekno) { var cdt = new CalendarDataStruct(); var adate = CalendarClass.FullDate(year, month, day); cdt.ID = id; cdt.Day = day; cdt.Month = month; cdt.MonthName = monthName; cdt.Year = year; cdt.WeekDay = weekday; cdt.WeekDayName = weekdayname; cdt.WeekNo = weekno; cdt.FullDate = adate; cdt.DayEvent = CalendarClass.Events(CalendarClass.DateToDateTime(adate)); CalendarDataList.Add(cdt); }
private void AddItem(int id, int day, int month, string monthName, int year, int weekday, string weekdayname, int weekno) { var cdt= new CalendarDataStruct(); var adate = CalendarClass.FullDate(year, month, day); cdt.ID = id; cdt.Day = day; cdt.Month = month; cdt.MonthName = monthName; cdt.Year = year; cdt.WeekDay = weekday; cdt.WeekDayName = weekdayname; cdt.WeekNo = weekno; cdt.FullDate = adate; cdt.DayEvent = CalendarClass.Events(CalendarClass.DateToDateTime(adate)); CalendarDataList.Add(cdt); }