еще фикс
This commit is contained in:
parent
c05b306cb1
commit
7dbd8ad01f
@ -49,6 +49,11 @@ namespace Liner
|
||||
Random random = new();
|
||||
Color mainColor = Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256));
|
||||
Color addColor = Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256));
|
||||
ColorDialog dialog = new();
|
||||
if (dialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
addColor = dialog.Color;
|
||||
}
|
||||
_drawingLiner = new DrawingLiner(random.Next(100, 300),
|
||||
random.Next(1000, 3000), mainColor, addColor,
|
||||
pictureBoxLiner.Width, pictureBoxLiner.Height);
|
||||
@ -91,6 +96,10 @@ namespace Liner
|
||||
{
|
||||
addColor = dialog.Color;
|
||||
}
|
||||
if (dialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
mainColor = dialog.Color;
|
||||
}
|
||||
_drawingLiner = new DrawingBigLiner(random.Next(100, 300),
|
||||
random.Next(1000, 3000), mainColor, addColor,
|
||||
Convert.ToBoolean(random.Next(0, 2)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user