/// <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); } }
/// <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); } }