コード例 #1
0
 protected virtual void OnCalendarVisibilityChanged(CalendarVisibilityChangedEventArgs e)
 {
     if (CalendarVisibilityChanged != null)
     {
         CalendarVisibilityChanged(this, e);
     }
 }
コード例 #2
0
        protected void Calendar1_SelectionChanged(object sender, EventArgs e)
        {
            txtDate.Text      = Calendar1.SelectedDate.ToShortDateString();
            Calendar1.Visible = false;
            CalendarVisibilityChangedEventArgs visibilityChangedEventData = new CalendarVisibilityChangedEventArgs(Calendar1.Visible);

            OnCalendarVisibilityChanged(visibilityChangedEventData);


            DateSelectedEventArgs dateSelectedEventData = new DateSelectedEventArgs(Calendar1.SelectedDate);

            OnDateSelected(dateSelectedEventData);
        }
コード例 #3
0
        protected void ImgBtn_Click(object sender, ImageClickEventArgs e)
        {
            if (Calendar1.Visible)
            {
                Calendar1.Visible = false;
            }
            else
            {
                Calendar1.Visible = true;
            }
            CalendarVisibilityChangedEventArgs visibilityChangedEventData = new CalendarVisibilityChangedEventArgs(Calendar1.Visible);

            OnCalendarVisibilityChanged(visibilityChangedEventData);
        }