Exemplo n.º 1
0
 /// <summary>
 /// Executes DropDown event
 /// </summary>
 protected void OnDropDown()
 {
     if (dropDown != null)
     {
         dropDown(this);
     }
     else
     {
         int x, y, w;
         ParentWindow.GetPosition(out x, out y);
         x += Allocation.Left;
         y += Allocation.Top + Allocation.Height;
         w  = Allocation.Right - Allocation.Left;
         DatePickerWindow wnd = new DatePickerWindow(x, y, w,
                                                     new DateTime(Date.Year, Date.Month, Date.Day),
                                                     EventOnPopupChange, EventOnClosePopup);
     }
 }
Exemplo n.º 2
0
		/// <summary>
		/// Executes DropDown event
		/// </summary>
		protected void OnDropDown()
		{
			if (dropDown != null)
				dropDown (this);
			else {
				int x, y, w;
				ParentWindow.GetPosition(out x,out y);	
				x += Allocation.Left;
				y += Allocation.Top + Allocation.Height;
				w = Allocation.Right - Allocation.Left;
				DatePickerWindow wnd = new DatePickerWindow (x, y, w, 
				                                             new DateTime (Date.Year, Date.Month, Date.Day),
				                                             EventOnPopupChange, EventOnClosePopup);
			}
		}