コード例 #1
0
ファイル: UserRegisterForm.cs プロジェクト: dogukan901/HTTU-1
        private void RegisterNowButton_Click(object sender, EventArgs e)
        {
            UserAndPassControl user = new UserAndPassControl();

            user.newUser(nameTB, passwordTB, ConfirmTB, groupBox1);
            this.Close();
        }
コード例 #2
0
        private void UpdateButton_Click(object sender, EventArgs e)
        {
            UserAndPassControl user1 = new UserAndPassControl();
            bool state = user1.newpass(Usernameforgot, Passwordforgot, Confirmpassforgot);

            if (state)
            {
                this.Hide();
            }
        }
コード例 #3
0
        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();
        }