示例#1
0
        private void B4_Click(object sender, EventArgs e)
        {
            Label l11 = FindControl(panel2, "l11") as Label;
            Label l12 = FindControl(panel2, "l12") as Label;
            Label l13 = FindControl(panel2, "l13") as Label;
            int   x;
            int   y;

            int.TryParse(l11.Text.Split(' ')[1], out x);
            int.TryParse(l12.Text.Split(' ')[1], out y);
            var res = Figure.Classification(new CustomPoint(x, y), new CustomPoint(f.Points()[0].x, f.Points()[0].y), new CustomPoint(f.Points()[1].x, f.Points()[1].y));

            l13.Text = "Result: " + res.ToString();
        }