lab5 done

This commit is contained in:
sofiaivv 2023-12-12 12:13:01 +04:00
parent 2b1e5e0d5e
commit f3fbf1e64f

View File

@ -92,12 +92,12 @@ namespace MotorBoat
{
case "labelSimpleObject":
_boat = new DrawningBoat((int)numericUpDownSpeed.Value,
(int)numericUpDownWeight.Value, Color.White, pictureBoxObject.Width, pictureBoxObject.Height);
(int)numericUpDownWeight.Value, Color.White, 900, 500);
break;
case "labelModifiedObject":
_boat = new DrawningMotorBoat((int)numericUpDownSpeed.Value,
(int)numericUpDownWeight.Value, Color.White, Color.Black, checkBoxGlass.Checked,
checkBoxEngine.Checked, pictureBoxObject.Width, pictureBoxObject.Height);
checkBoxEngine.Checked, 900, 500);
break;
}
DrawBoat();