private void DropDownIndexChanged(UIComponent component, int value) { if (value != -1) { OnSelectTemplate?.Invoke(SelectTemplate.SelectedObject); } }
private void ItemClick(UIComponent component, UIMouseEventParameter eventParam) { if (component is TemplatePopupItem item) { OnSelectTemplate?.Invoke(item.Object); } }
private void OnTemplateSelect(StyleTemplate template) { OnSelectTemplate?.Invoke(template); ClosePopup(); }