/// <summary>
 /// Returns the player.dat field name for UW1
 /// </summary>
 /// <param name="index"></param>
 /// <returns></returns>
 public static string FieldName(int index, int game)
 {
     if (game == 2)
     {
         return(PlayerDatNames.UW2FieldName(index));
     }
     else
     {
         return(PlayerDatNames.UW1FieldName(index));
     }
 }
 public static void PopulateSkillsGrid(int offset, main MAIN)
 {
     MAIN.GrdSkills.Rows.Clear();
     for (int i = 0; i <= 22; i++)
     {
         //add rows
         int             rowId = MAIN.GrdSkills.Rows.Add();
         DataGridViewRow row   = MAIN.GrdSkills.Rows[rowId];
         if (main.curgame == main.GAME_UW1)
         {
             row.Cells[0].Value = PlayerDatNames.UW1FieldName(offset + i);
         }
         else
         {
             row.Cells[0].Value = PlayerDatNames.UW2FieldName(offset + i);
         }
         row.Cells[1].Value = MAIN.GrdPlayerDat.Rows[offset + i].Cells[0].Value;
     }
 }