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;
|
||||
}
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user