private void btn_Join_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            JoinForm dlgJoinForm = new JoinForm(this);

            if (dlgJoinForm.ShowDialog() == DialogResult.OK)
            {
                while (join_state)
                {
                    conn = new MySqlConnection(strConn);
                    conn.Open();
                    cmd = new MySqlCommand("", conn);

                    string sql = "UPDATE user_info SET upw='";
                    sql            += dlgJoinForm.tb_Pw.Text + "', uname='" + dlgJoinForm.tb_Uname.Text + "', ubirth='";
                    sql            += dlgJoinForm.combo_birth1.Text + "." + dlgJoinForm.combo_birth2.Text + "." + dlgJoinForm.combo_birth3.Text + "', ugender='";
                    sql            += dlgJoinForm.combo_Gender.Text + "', uadress='" + dlgJoinForm.tb_Adress.Text + "', uphone1='";
                    sql            += dlgJoinForm.tb_Phone1.Text + "', uphone2='" + dlgJoinForm.tb_Phone2.Text + "', uphone3='";
                    sql            += dlgJoinForm.tb_Phone3.Text + "' WHERE uid='" + dlgJoinForm.tb_userID.Text + "'";
                    cmd.CommandText = sql;
                    cmd.ExecuteNonQuery();

                    join_state = false;
                    conn.Close();
                }
                this.Visible = true;
                join_state   = true;
                MessageBox.Show("회원가입이 완료 되었습니다. 로그인 해주세요.");
            }
            else
            {
                this.Visible = true;
            }
        }
Ejemplo n.º 2
0
 public ImageProcessing(JoinForm form)
 {
     InitializeComponent();
     this.joinForm = form;
 }