コード例 #1
0
 /// <summary> Fires the <see cref="MenuBase.WxeFunctionCommandClick"/> event. </summary>
 protected virtual void OnWxeFunctionCommandClick(WebMenuItem item)
 {
     if (WxeFunctionCommandClick != null)
     {
         WebMenuItemClickEventArgs e = new WebMenuItemClickEventArgs(item);
         WxeFunctionCommandClick(this, e);
     }
 }
コード例 #2
0
        /// <summary> Fires the <see cref="MenuBase.EventCommandClick"/> event. </summary>
        protected virtual void OnEventCommandClick(WebMenuItem item)
        {
            ArgumentUtility.CheckNotNull("item", item);

            if (item.Command != null)
            {
                item.Command.OnClick();
            }

            if (EventCommandClick != null)
            {
                WebMenuItemClickEventArgs e = new WebMenuItemClickEventArgs(item);
                EventCommandClick(this, e);
            }
        }