/// <summary> /// 响应鼠标单击事件 /// </summary> public void OnMouseClick(object sender, NuiHeaderButtonEventArgs e) { if (MouseClick != null) { MouseClick(sender, e); } }
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); }