private void tmrRepeat_Tick(object sender, EventArgs e)
{
if (repeat_delay > 1)
{
repeat_counter++;
if (repeat_counter < repeat_delay)
{
return;
}
repeat_counter = 0;
repeat_delay = (repeat_delay * 3 / 4);
}
if (mouse_pressed == 0)
{
tmrRepeat.Enabled = false;
}
if ((mouse_pressed == 1) && top_button_rect.Contains(mouse_x, mouse_y))
{
owner.UpButton();
}
if ((mouse_pressed == 2) && bottom_button_rect.Contains(mouse_x, mouse_y))
{
owner.DownButton();
}
}