private void updateTable() { _itemsTable.removeLine(_itemsTable.SelectedIndex); if (_itemsTable.Count == 0) { insertNoFleets(); } }
/// <summary> /// actualiza a tabela depois de um click /// </summary> private void updateTable() { string name = _itemsTable.getSpecificText(_itemsTable.SelectedIndex, 0); IEnumerator iter = _itemsTable.Controls.GetEnumerator(); while (iter.MoveNext()) { ItemsTableLine line = (ItemsTableLine)iter.Current; string str = ((ItemsTableItem)line.Controls[0]).Item; if (str == name) { _itemsTable.removeLine(line); iter = _itemsTable.Controls.GetEnumerator(); } } if (_itemsTable.Count == 0) { noResults(); } }
/// <summary> /// actualiza a tabela depois de um click /// </summary> private void updateTable() { string fleetName = itemsTable.getSpecificText(itemsTable.SelectedIndex, 0); IEnumerator iter = itemsTable.Controls.GetEnumerator(); while (iter.MoveNext()) { ItemsTableLine line = (ItemsTableLine)iter.Current; string str = ((ItemsTableItem)line.Controls[0]).Item; if (str == fleetName) { itemsTable.removeLine(line); iter = itemsTable.Controls.GetEnumerator(); } } if (itemsTable.Count == 0) { addLine(info.getContent("fleet_noFleetsToMove"), 3); travel.Visible = false; } }