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

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) private void ButtonCreate_Click(object sender, EventArgs e)
{ {
Random rnd = new(); 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(); SetData();
Draw(); Draw();
} }

View File

@ -104,3 +104,4 @@ namespace Stormtrooper
} }
} }
} }
}