예제 #1
0
 //Method which raise the event
 protected virtual void OnDateSelection(DateSelectedEventArgs e)
 {
     if (DateselectedEvent != null)
     {
         DateselectedEvent(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
 private void CalenderUserControl_DateselectedEvent(object sender, DateSelectedEventArgs e)
 {
     Response.Write("" + e.RevealDateselected.ToShortDateString());
     //throw new NotImplementedException();
 }