Финальные изменения

This commit is contained in:
Артем Харламов 2022-11-28 21:39:10 +04:00
parent 8b72e04647
commit da092673e2
2 changed files with 9 additions and 2 deletions

View File

@ -43,7 +43,13 @@ namespace Stormtrooper
private void ButtonCreate_Click(object sender, EventArgs e)
{
Random rnd = new();
_storm = new Drawning(rnd.Next(100, 300), rnd.Next(1000, 2000), Color.FromArgb(rnd.Next(0, 256), rnd.Next(0, 256), rnd.Next(0, 256)));
Color color = Color.FromArgb(rnd.Next(0, 256), rnd.Next(0, 256), rnd.Next(0, 256));
ColorDialog dialog = new();
if (dialog.ShowDialog() == DialogResult.OK)
{
color = dialog.Color;
}
_storm = new Drawning(rnd.Next(100, 300), rnd.Next(1000, 2000), color);
SetData();
Draw();
}

View File

@ -22,7 +22,7 @@ namespace Stormtrooper
/// </summary>
public int Count => _places.Count;
private readonly int _maxCount;
private readonly int _maxCount;
/// <summary>
/// Конструктор
/// </summary>
@ -104,3 +104,4 @@ namespace Stormtrooper
}
}
}
}