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