protected virtual void OnMouseUp (MouseEventArgs e)
{
if (this.Enabled) {
this.is_pressed = false;
this.Invalidate ();
//if (this.IsOnDropDown)
//if (!(this is ToolStripDropDownItem) || !(this as ToolStripDropDownItem).HasDropDownItems || (this as ToolStripDropDownItem).DropDown.Visible == false) {
// if ((this.Parent as ToolStripDropDown).OwnerItem != null)
// ((this.Parent as ToolStripDropDown).OwnerItem as ToolStripDropDownItem).HideDropDown ();
// else
// (this.Parent as ToolStripDropDown).Hide ();
//}
MouseEventHandler eh = (MouseEventHandler)(Events [MouseUpEvent]);
if (eh != null)
eh (this, e);
}
}