public void MouseUp(MouseEventArgs e) { if (this.MouseDownControl != null) { IUIInput mouseDownControl = this.MouseDownControl; mouseDownControl.MouseUp(e); mouseDownControl.Click(e); mouseDownControl.IsMouseDown = false; mouseDownControl.IsMouseActive = false; mouseDownControl.IsKeyDown = false; mouseDownControl.IsKeyActive = false; this.m_MouseDownControl = null; this.m_DragActive = false; this.ControlBase.UIInvalidate(this); } }