public virtual void ShowPopup()
 {
     popupForm   = GetPopupForm(this);
     isPopupOpen = true;
     popupForm.Show();
     popupForm.Focus();
 }
        protected virtual PopupTimeEditForm GetPopupForm(PopupTimeEdit edit)
        {
            if (popupForm == null)
            {
                popupForm = new PopupTimeEditForm(edit);
            }

            DateTime newTime = ParseCurrentTime(Text);

            popupForm.popupControl.CurrentTime = newTime;
            return(popupForm);
        }