ChessDBLibrary.Gamer.AddNewGamer C# (CSharp) Method

AddNewGamer() public method

public AddNewGamer ( string name, string surname, string nickname, string country, System birthday, string eMailAddress, string password, int elo, bool status ) : void
name string
surname string
nickname string
country string
birthday System
eMailAddress string
password string
elo int
status bool
return void
        public void AddNewGamer(string name, string surname, string nickname, string country, System.DateTime birthday,
                                string eMailAddress, string password, int elo, bool status)
        {
            try
            {
                ChessDataSet.GamersRow newRow = gamersTable.NewGamersRow();

                newRow.Name = name;
                newRow.Surname = surname;
                newRow.Nickname = nickname;
                newRow.Country = country;
                newRow.Birthday = birthday;
                newRow.EMailAddress = eMailAddress;
                newRow.Password = password;
                newRow.Elo = elo;
                newRow.Status = status;

                gamersTable.AddGamersRow(newRow);
                gamersAdapter.Update(gamersTable);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }