Compare commits
5 Commits
918be42c06
...
16da11f0e2
Author | SHA1 | Date | |
---|---|---|---|
16da11f0e2 | |||
f3ce9dd416 | |||
d1356fb01e | |||
c266418c75 | |||
737d77ac68 |
@ -57,7 +57,7 @@ namespace Catamaran
|
|||||||
private void buttonCreateSailCatamaran_Click(object sender, EventArgs e)
|
private void buttonCreateSailCatamaran_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Random random = new();
|
Random random = new();
|
||||||
//ё TODO выбор основного цвета
|
//TODO выбор основного цвета
|
||||||
Color color = Color.FromArgb(random.Next(0, 256),
|
Color color = Color.FromArgb(random.Next(0, 256),
|
||||||
random.Next(0, 256), random.Next(0, 256));
|
random.Next(0, 256), random.Next(0, 256));
|
||||||
ColorDialog dialogColor = new();
|
ColorDialog dialogColor = new();
|
||||||
|
@ -122,7 +122,7 @@ namespace Catamaran
|
|||||||
case "labelModifiedObject":
|
case "labelModifiedObject":
|
||||||
_catamaran = new DrawningSailCatamaran((int)numericUpDownSpeed.Value,
|
_catamaran = new DrawningSailCatamaran((int)numericUpDownSpeed.Value,
|
||||||
(int)numericUpDownWeight.Value, Color.White, Color.Black, checkBoxSail.Checked,
|
(int)numericUpDownWeight.Value, Color.White, Color.Black, checkBoxSail.Checked,
|
||||||
checkBoxFloatDetails.Checked, pictureBoxObject.Width,
|
checkBoxFloatDetails.Checked, pictureBoxObject.Width,
|
||||||
pictureBoxObject.Height);
|
pictureBoxObject.Height);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -168,6 +168,7 @@ namespace Catamaran
|
|||||||
EventAddCatamaran?.Invoke(_catamaran);
|
EventAddCatamaran?.Invoke(_catamaran);
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user