labWork_5 готово

# Conflicts:
#	ProjectTank/ProjectTank/FormBattleTankCollection.cs
#	ProjectTank/ProjectTank/FormTankConfig.cs
This commit is contained in:
Garifullin-Farid 2024-05-19 22:23:08 +04:00
parent 3e86003a1a
commit 66ada06a40

View File

@ -67,15 +67,20 @@ namespace ProjectTank
{
return;
}
FormTankConfig form = new();
form.AddEvent(SetTank);
form.Show();
return color;
}
/// <summary>
/// Удаление танка
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void ButtonAddTank_Click(object sender, EventArgs e)
{
CreateObject(nameof(DrawningTank));
}
private void ButtonAddBattleTank_Click(object sender, EventArgs e)
{
CreateObject(nameof(DrawningBattleTank));
}
private void buttonRemoveTank_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(maskedTextBox.Text) || _company == null) return;