Exemplo n.º 1
0
 private void buttonCreate_Click(object sender, EventArgs e)
 {
     double doubleValue1 = Convert.ToDouble(textBoxSide1.Text.Replace(".", ","));
     double doubleValue2 = Convert.ToDouble(textBoxSide2.Text.Replace(".", ","));
     AreaCalc.Rectangle rectangle = new AreaCalc.Rectangle(doubleValue1, doubleValue2);
     FigureList.Add(rectangle);
     Close();
 }
Exemplo n.º 2
0
 public void PositiveRectangleSide2(double side2)
 {
     double side1 = 3;
     var rectangle = new Rectangle(side1, side2);
 }