labWork_5 готово
# Conflicts: # ProjectTank/ProjectTank/FormBattleTankCollection.cs # ProjectTank/ProjectTank/FormTankConfig.cs
This commit is contained in:
parent
3e86003a1a
commit
66ada06a40
@ -67,15 +67,20 @@ namespace ProjectTank
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FormTankConfig form = new();
|
|
||||||
form.AddEvent(SetTank);
|
return color;
|
||||||
form.Show();
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
|
||||||
/// Удаление танка
|
private void ButtonAddTank_Click(object sender, EventArgs e)
|
||||||
/// </summary>
|
{
|
||||||
/// <param name="sender"></param>
|
CreateObject(nameof(DrawningTank));
|
||||||
/// <param name="e"></param>
|
}
|
||||||
|
|
||||||
|
private void ButtonAddBattleTank_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
CreateObject(nameof(DrawningBattleTank));
|
||||||
|
}
|
||||||
|
|
||||||
private void buttonRemoveTank_Click(object sender, EventArgs e)
|
private void buttonRemoveTank_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(maskedTextBox.Text) || _company == null) return;
|
if (string.IsNullOrEmpty(maskedTextBox.Text) || _company == null) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user