예제 #1
0
 /// <summary>
 /// 响应鼠标单击事件
 /// </summary>
 public void OnMouseClick(object sender, NuiHeaderButtonEventArgs e)
 {
     if (MouseClick != null)
     {
         MouseClick(sender, e);
     }
 }
예제 #2
0
        protected override void OnMouseUp(MouseEventArgs e)
        {
            if (headerBtnList != null)
            {
                for (int index = 0; index < headerBtnList.Count; index++)
                {
                    NuiHeaderButton headerBtn = headerBtnList[index];
                    if (headerBtn.ClientRectangle.Contains(e.Location))
                    {
                        NuiHeaderButtonEventArgs args = new NuiHeaderButtonEventArgs(e.Button, e.X, e.Y, index, headerBtn);
                        headerBtn.OnMouseClick(this, args);
                    }
                }
            }

            base.OnMouseUp(e);
        }