private void button1_Click(object sender, EventArgs e)
        {
            string insertQuery = "INSERT INTO players(login,pl_password,email) VALUES ('" + LoginReg.Text + "','" + Pass.Text + "','" + email.Text + "')";

            connection.Open();
            MySqlCommand command = new MySqlCommand(insertQuery, connection);

            if (command.ExecuteNonQuery() == 1)
            {
                MessageBox.Show("Прошла успешно");
                this.Hide();
                Loging f1 = new Loging();
                f1.Show();
            }
            else
            {
                MessageBox.Show("Введите данные");
            };
            connection.Close();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            Loging f1 = new Loging();

            this.Hide();
        }