private void SetGames_Victory(DBWebbVictory.GameDataTable i_Table) { foreach (DataRow m_Row in i_Table.Rows) { string m_Value = string.Format("{0} (GameName: '{1}')", m_Row[i_Table.GameIDColumn.Caption], m_Row[i_Table.GameNameColumn.Caption] , m_Row[i_Table.DateColumn.Caption] ); this.C_Games.Items.Add(m_Value); } }
private void SetGames_Victory(DBWebbVictory.GameDataTable i_Table) { foreach (DataRow m_Row in i_Table.Rows) { int key = 0; bool convert = int.TryParse(m_Row[0].ToString(), out key); if (!convert) { continue; } IndexerDescription indexerDescription = new IndexerDescription("Game", key, m_Row[1].ToString()); this.C_Games.Items.Add(indexerDescription); } }