protected virtual void OnCalendarVisibilityChanged(CalendarVisibilityChangedEventArgs e)
 {
     if (CalendarVisibilityChanged != null)
     {
         CalendarVisibilityChanged(this, e);
     }
 }
        protected void Calendar1_SelectionChanged(object sender, EventArgs e)
        {
            txtDate.Text      = Calendar1.SelectedDate.ToShortDateString();
            Calendar1.Visible = false;
            CalendarVisibilityChangedEventArgs CalendarVisibilityChangedEventData = new CalendarVisibilityChangedEventArgs(false);

            OnCalendarVisibilityChanged(CalendarVisibilityChangedEventData);

            DateSelectedEventArgs dateSelectedEventData = new DateSelectedEventArgs(Calendar1.SelectedDate);

            onDateSelected(dateSelectedEventData);
        }
 protected void ImgBtn_Click(object sender, ImageClickEventArgs e)
 {
     if (Calendar1.Visible)
     {
         Calendar1.Visible = false;
         CalendarVisibilityChangedEventArgs CalendarVisibilityChangedEventData = new CalendarVisibilityChangedEventArgs(false);
         OnCalendarVisibilityChanged(CalendarVisibilityChangedEventData);
     }
     else
     {
         Calendar1.Visible = true;
         CalendarVisibilityChangedEventArgs CalendarVisibilityChangedEventData = new CalendarVisibilityChangedEventArgs(true);
         OnCalendarVisibilityChanged(CalendarVisibilityChangedEventData);
     }
 }
 protected void CUC_CalendarVisibilityChanged(object sender, CalendarVisibilityChangedEventArgs e)
 {
     Response.Write("Calende Visible = " + e.IsCalendarVisible.ToString() + "<br/>");
 }
 private void CalendarUserControl1_CalendarVisibilityChanged(object sender, CalendarVisibilityChangedEventArgs e)
 {
     Response.Write("Calendar Visible = " + e.IsCalendarVisible.ToString());
 }