protected override void OnCreateVerbs(System.Web.UI.WebControls.WebParts.WebPartVerbsEventArgs e) { System.Web.UI.WebControls.WebParts.WebPartVerb verbRefresh = new System.Web.UI.WebControls.WebParts.WebPartVerb("RefreshVerb", "refresh_snippet(this);return false;"); verbRefresh.Text = "Refresh"; verbRefresh.ImageUrl = "~/Images/dash-refresh-icon.png"; WebPartVerb[] newVerbs = new WebPartVerb[] { verbRefresh }; e.Verbs = new WebPartVerbCollection(e.Verbs, newVerbs); base.OnCreateVerbs(e); }
/// <devdoc> /// Load the verbs defined by the page developer or zone subclass. /// </devdoc> private void CreateZoneVerbs() { WebPartVerbsEventArgs args = new WebPartVerbsEventArgs(); OnCreateVerbs(args); _verbs = args.Verbs; }
protected virtual void OnCreateVerbs(WebPartVerbsEventArgs e) { WebPartVerbsEventHandler handler = (WebPartVerbsEventHandler)Events[CreateVerbsEvent]; if (handler != null) { handler(this, e); } }
protected virtual new void OnCreateVerbs(WebPartVerbsEventArgs e) { }
private void CreateZoneVerbs() { WebPartVerbsEventArgs e = new WebPartVerbsEventArgs(); this.OnCreateVerbs(e); this._verbs = e.Verbs; }