Пример #1
0
        public void ToggleDropDown(HCDropDownControl control, Control parentControl)
        {
            if (dropDownHolder == null)
            {
                if (control.UseFormDropDownHolder)
                {
                    dropDownHolder = new HCFormDropDownHolder(control);
                }
                else
                {
                    dropDownHolder = new HCToolStripDropDownHolder(control);
                }

                dropDownHolder.Show(parentControl);
                dropDownHolder.HolderClosed += DropDownHolder_Closed;
            }
            else
            {
                dropDownHolder.Close();
            }
        }
Пример #2
0
        public void ToggleDropDown(HCDropDownControl control, HCItemProperty itemProperty)
        {
            if (dropDownHolder == null)
            {
                if (control.SpecialHolder)
                {
                    dropDownHolder = new HCFormDropDownHolder(control);
                }
                else
                {
                    dropDownHolder = new HCToolStripDropDownHolder(control);
                }

                dropDownHolder.Show(itemProperty.CreatedControlInsidePropertyItemControl);
                dropDownHolder.HolderClosed += DropDownHolder_Closed;
            }
            else
            {
                dropDownHolder.Close();
            }
        }