示例#1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (rightPolygon != null)
     {
         rightPolygon.Erase(getPointsForRightPolygon(Int32.Parse(number.Text), 50, Int32.Parse(firstPointX.Text), Int32.Parse(firstPointY.Text)));
         rightPolygon = null;
     }
 }
示例#2
0
        private void button2_Click(object sender, EventArgs e)
        {
            rightPolygon = new RightPolygon(graphics, Color.Red);

            rightPolygon.Draw(getPointsForRightPolygon(Int32.Parse(number.Text), 50, Int32.Parse(firstPointX.Text), Int32.Parse(firstPointY.Text)));
        }