This commit is contained in:
Алексей Тихоненков 2023-10-15 23:02:57 +04:00
parent 58872d7938
commit 203daf9a16

View File

@ -65,7 +65,7 @@ namespace AntiAircraftGun
bodyColor = dialog.Color; bodyColor = dialog.Color;
if (dialog.ShowDialog() == DialogResult.OK) if (dialog.ShowDialog() == DialogResult.OK)
dopColor = dialog.Color; dopColor = dialog.Color;
_drawing = new AdvancedDrawingAntiAirCraftGun( _drawingAntiAirCraftGun = new AdvancedDrawingAntiAirCraftGun(
random.Next(100, 300), // Ńęîđîńňü random.Next(100, 300), // Ńęîđîńňü
random.Next(1000, 3000), // Âĺń random.Next(1000, 3000), // Âĺń
bodyColor, additionalColor, dopColor, bodyColor, additionalColor, dopColor,
@ -89,7 +89,7 @@ namespace AntiAircraftGun
{ {
bodyColor = dialog.Color; bodyColor = dialog.Color;
} }
_drawing = new BaseDrawingAntiAirCraftGun( _drawingAntiAirCraftGun = new BaseDrawingAntiAirCraftGun(
random.Next(100, 300), // Ńęîđîńňü random.Next(100, 300), // Ńęîđîńňü
random.Next(1000, 3000), // Âĺń random.Next(1000, 3000), // Âĺń
bodyColor, additionalColor, bodyColor, additionalColor,
@ -140,7 +140,7 @@ namespace AntiAircraftGun
} }
private void ButtonSelectZenit_Click(object sender, EventArgs e) private void ButtonSelectZenit_Click(object sender, EventArgs e)
{ {
SelectedZenit = _drawing; SelectedZenit = _drawingAntiAirCraftGun;
DialogResult = DialogResult.OK; DialogResult = DialogResult.OK;
} }