コード例 #1
0
ファイル: cusWepPartZone.cs プロジェクト: 15831944/JIBE-ERP
        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);
        }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
 protected virtual void OnCreateVerbs(WebPartVerbsEventArgs e) {
     WebPartVerbsEventHandler handler = (WebPartVerbsEventHandler)Events[CreateVerbsEvent];
     if (handler != null) {
         handler(this, e);
     }
 }
 protected virtual new void OnCreateVerbs(WebPartVerbsEventArgs e)
 {
 }
 protected virtual new void OnCreateVerbs(WebPartVerbsEventArgs e)
 {
 }
 private void CreateZoneVerbs()
 {
     WebPartVerbsEventArgs e = new WebPartVerbsEventArgs();
     this.OnCreateVerbs(e);
     this._verbs = e.Verbs;
 }