// Add SearchUI when menustrip item clicked public bool AddXFormCallback(out NetCheatX.Core.UI.XForm xForm, IPluginHost host) { xForm = null; if (host == null) { return(false); } xForm = new UI.SearchUI(host, this); return(true); }
// Initialize SearchUI from uniqueName public bool InitializeXForm(out XForm xForm, string uniqueName) { xForm = null; if (_host == null) { return(false); } if (uniqueName == searchui_form_id) { xForm = new UI.SearchUI(_host, this); } if (xForm != null) { return(true); } return(false); }