public void UpdatePlayer()
 {
     try
     {
         //    for (int i = 0; i < player.Count; i++)
         //    {
         //        if (player[i].RowState != DataRowState.Unchanged)
         //        {
         new DataSet1TableAdapters.playerTableAdapter().Update(player);
         player = new DataSet1TableAdapters.playerTableAdapter().GetData();
         //    }
         //    else
         //    {
         //        Console.WriteLine("test");
         //    }
         //}
     }
     catch (Exception ex) {
         System.Windows.MessageBox.Show(ex.Message);
     }
 }
 public void UpdatePlayer()
 {
     try
     {
     //    for (int i = 0; i < player.Count; i++)
     //    {
     //        if (player[i].RowState != DataRowState.Unchanged)
     //        {
                 new DataSet1TableAdapters.playerTableAdapter().Update(player);
                 player = new DataSet1TableAdapters.playerTableAdapter().GetData();
         //    }
         //    else
         //    {
         //        Console.WriteLine("test");
         //    }
         //}
     }
     catch(Exception ex) {
         System.Windows.MessageBox.Show(ex.Message);
     }
 }