Esempio n. 1
0
        private void Form1_Click(object sender, EventArgs e)
        {
            MouseEventArgs e2 = (MouseEventArgs)e;

            IRectangle closest = store.findRectangleAt(e2.X, e2.Y);

            MessageBox.Show(string.Format("The closest IRectangle locate in X: {0} Y: {1}", closest.getLeft(), closest.getTop()));
        }