예제 #1
0
 //Method which raise the event
 protected virtual void OnCalenderVsibilityChanged(CalenderVisibilityChangedEventArgs e)
 {
     if (CalenderVisibilityChangedEvent != null)
     {
         CalenderVisibilityChangedEvent(this, e);
     }
 }
예제 #2
0
        protected void Calendar1_SelectionChanged(object sender, EventArgs e)
        {
            TextBox1.Text     = Calendar1.SelectedDate.ToShortDateString();
            Calendar1.Visible = false;

            CalenderVisibilityChangedEventArgs cvedata = new CalenderVisibilityChangedEventArgs(false);

            OnCalenderVsibilityChanged(cvedata);
            DateSelectedEventArgs dsedata = new DateSelectedEventArgs(Calendar1.SelectedDate);

            OnDateSelection(dsedata);
        }
예제 #3
0
        protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        {
            if (Calendar1.Visible)
            {
                Calendar1.Visible = false;

                CalenderVisibilityChangedEventArgs eventdata = new CalenderVisibilityChangedEventArgs(false);
                OnCalenderVsibilityChanged(eventdata);
            }
            else
            {
                Calendar1.Visible = true;
                CalenderVisibilityChangedEventArgs eventdata = new CalenderVisibilityChangedEventArgs(true);
                OnCalenderVsibilityChanged(eventdata);
            }
        }
예제 #4
0
 private void CalenderUserControl_CalenderVisibilityChangedEvent(object sender, CalenderVisibilityChangedEventArgs e)
 {
     Response.Write("" + e.RevealIsCalenderVisible.ToString());
     //throw new NotImplementedException();
 }