public void ToggleCalendar() { if (calendar.Visible) { HideCalendar(); CalendarClosed?.Invoke(this, new EventArgs()); if (_isParentChange) //Parent was not an ODForm, set back to original location and parent. { calendar.Location = _locationOrigCalendar; calendar.Parent = this; } } else { ShowCalendar(); CalendarOpened?.Invoke(this, new EventArgs()); } }
private void OnCalendarOpened(EventArgs e) { CalendarOpened?.Invoke(this, e); }