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 visibilityChangedEventData = new CalendarVisibilityChangedEventArgs(Calendar1.Visible); OnCalendarVisibilityChanged(visibilityChangedEventData); DateSelectedEventArgs dateSelectedEventData = new DateSelectedEventArgs(Calendar1.SelectedDate); OnDateSelected(dateSelectedEventData); }
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); }