private void OnSubmitSelection(int id, object selection, int selType, ref string itemText, ref bool res) { if (id == this.Id) { var selObj = ToSelObject(selection); if (m_ElementType.IsAssignableFrom(selObj.GetType())) { if (m_CustomFilter != null) { var args = new SelectionCustomFilterArguments() { ItemText = itemText, Filter = res }; m_CustomFilter.Filter(this, selObj, args); res = args.Filter; itemText = args.ItemText; if (!res && !string.IsNullOrEmpty(args.Reason)) { SwControl.ShowBubbleTooltip("", args.Reason, ""); } } } else { res = false; } } }
public override void ShowTooltip(string title, string msg) => SwControl.ShowBubbleTooltip(title, msg, "");