//public void SetEdls(DataTable i_Table) //{ // this.C_Edls.Items.Clear(); // if (i_Table == null || i_Table.Columns.Count != 2) // { // this.Group_Edls.Visible = false; // return; // } // this.Group_Edls.Visible = true; // foreach (DataRow m_Row in i_Table.Rows) // { // string m_Value = string.Format("{0} (CutupName: '{1}')", // m_Row[0], // m_Row[1]); // this.C_Edls.Items.Add(m_Value); // } //} //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); // } //} #endregion #region New public void SetEdls(DataTable i_Table) { this.C_Edls.Items.Clear(); if (i_Table == null || i_Table.Columns.Count != 2) { this.Group_Edls.Visible = false; return; } this.Group_Edls.Visible = true; 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("Cutup", key, m_Row[1].ToString()); this.C_Edls.Items.Add(indexerDescription); } }
public StringCollection GetSelectedEdlIDs() //2009-6-22 14:08:33@Simon Add this Code { StringCollection m_EdlIDs = new StringCollection(); foreach (object m_SelectedObj in this.C_Edls.CheckedItems) { IndexerDescription IndexerDescription = m_SelectedObj as IndexerDescription; m_EdlIDs.Add(IndexerDescription.KeyId.ToString()); } return(m_EdlIDs); }
public Int32Collection GetSelectedGameIDs() { Int32Collection m_GameIDs = new Int32Collection(); foreach (object m_SelectedObj in this.C_Games.CheckedItems) { IndexerDescription IndexerDescription = m_SelectedObj as IndexerDescription; m_GameIDs.Add(IndexerDescription.KeyId); } return(m_GameIDs); }
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); } }