protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
if (!DesignMode && e.Button == MouseButtons.Left)
{
if (this.Items.Count > 0)
{
foreach (MetroItem item in this.Items)
{
if (item.Rectangle.Contains(e.Location))
{
item.MouseState = EMouseState.Down;
this._mouseDown = true;
}
this.Invalidate(item.Rectangle);
}
}
if (this.StartRect.Contains(e.Location))
{
this._mouseDown = true;
this._startState = EMouseState.Down;
this.Invalidate(this.StartRect);
}
}
}