Esempio n. 1
0
        protected static DateTime GetEndDateTimeFromItem(CalendarEvent item)
        {
            DateTime newStartDateTime = item.EventStartDate;

            if (item.EventStartTime != null)
            {
                newStartDateTime = CalendarHelper.GetFullDateTime(item.EventEndDate, item.EventStartTime);
            }

            return(newStartDateTime);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            ItemGuid = ParmParser.GetGuidIDFromQuery();

            if (!IsPostBack)
            {
                var itm    = CalendarHelper.GetEvent(ItemGuid);
                var itmPro = CalendarHelper.GetProfile(itm.CalendarEventProfileID);

                litTitle.Text   = itmPro.EventTitle;
                litTime.Visible = !itmPro.IsAllDayEvent;

                litTime.Text = String.Format(" {0:h:mm tt} ", CalendarHelper.GetFullDateTime(itmPro.EventStartTime));

                litDate.Text = itm.EventDate.ToShortDateString();

                CalendarHelper.SetTextboxToTimeSpan(txtEventStartTime, itm.EventStartTime);
                CalendarHelper.SetTextboxToTimeSpan(txtEventEndTime, itm.EventEndTime);

                chkIsCancelled.Checked = itm.IsCancelled;
                reContent.Text         = itm.EventDetail;
            }
        }
Esempio n. 3
0
 public DateTime GetTimeFromTimeSpan(TimeSpan?timeSpan)
 {
     return(CalendarHelper.GetFullDateTime(timeSpan));
 }