Ejemplo n.º 1
0
        public static DataTable GetAvailableMedal()
        {
            DataTable medal     = Medals.GetMedal();
            DataTable dataTable = medal.Clone();

            DataRow[] array = medal.Select("available=1");
            for (int i = 0; i < array.Length; i++)
            {
                DataRow row = array[i];
                dataTable.ImportRow(row);
            }
            return(dataTable);
        }
Ejemplo n.º 2
0
        public static DataTable GetMedal(int medalId)
        {
            DataTable dataTable = Medals.GetMedal().Clone();

            foreach (DataRow dataRow in Medals.GetMedal().Rows)
            {
                if (dataRow["medalid"].ToString() == medalId.ToString())
                {
                    dataTable.ImportRow(dataRow);
                }
            }
            return(dataTable);
        }