예제 #1
0
 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());
     }
 }
예제 #2
0
 private void OnCalendarOpened(EventArgs e)
 {
     CalendarOpened?.Invoke(this, e);
 }