private void RegisterNowButton_Click(object sender, EventArgs e) { UserAndPassControl user = new UserAndPassControl(); user.newUser(nameTB, passwordTB, ConfirmTB, groupBox1); this.Close(); }
private void RegisterNowButton_Click(object sender, EventArgs e) { con_coordinates.Open(); cmd.CommandText = "SELECT lat FROM coordinates.dbo.ilceler where ilce=@_ilce"; cmd.Parameters.AddWithValue("_ilce", Provience.SelectedItem.ToString()); Lat = Convert.ToSingle(cmd.ExecuteScalar()); cmd.Parameters.Clear(); cmd.CommandText = "SELECT long FROM coordinates.dbo.ilceler where ilce=@_ilce"; cmd.Parameters.AddWithValue("_ilce", Provience.SelectedItem.ToString()); Long = Convert.ToSingle(cmd.ExecuteScalar()); cmd.Parameters.Clear(); UserAndPassControl user = new UserAndPassControl(); user.newUser(nameTB, Country, Provience, passwordTB, ConfirmTB, Lat, Long, groupBox1); this.Close(); }