private void TestPanel_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right) return; for (int i = 0; i < 8; ++i) { if (_style.IsPointWithinSection(e.Location, i)) SelectImage(i); } _move = true; _tx = e.X; _ty = e.Y; }