private void selectAIsToolStripMenuItem_Click(object sender, EventArgs e) { var selectAIs = new frmSelectAIs(); if (selectAIs.ShowDialog(this) == DialogResult.OK) { airally.ClearAIs(); for (var i = 1; i <= 8; i++) { if (!string.IsNullOrEmpty(selectAIs[i].AIName) && !string.IsNullOrEmpty(selectAIs[i].AILocation)) { airally.AddAI(selectAIs[i].AIName, selectAIs[i].AILocation); } } RefreshBoard(); } }
private void selectAIsToolStripMenuItem_Click(object sender, EventArgs e) { var selectAIs = new frmSelectAIs(); if (selectAIs.ShowDialog(this) == DialogResult.OK) { airally.ClearAIs(); for (var i = 1; i <= 8; i++) { if (!string.IsNullOrEmpty(selectAIs[i].AIName) && !string.IsNullOrEmpty(selectAIs[i].AILocation)) { airally.AddAI(selectAIs[i].AIName, selectAIs[i].AILocation); } } RefreshBoard(); } }