private new Task DataBind() { OnDataBinding.InvokeAsync(EventArgs.Empty); if (DataSource is XmlDocument xmlDoc) { if (xmlDoc.SelectSingleNode("/*").LocalName == "siteMap") { DataBindSiteMap(xmlDoc); } else { DataBindXml((DataSource as XmlDocument).SelectNodes("/*")); } } OnDataBound.InvokeAsync(EventArgs.Empty); return(Task.CompletedTask); }
protected virtual void DataBinding(EventArgs e) { OnDataBinding.InvokeAsync(e); }