Beispiel #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            int result = Miqqa_sql.SignUp(username.Text, password.Text, nickname.Text);

            if (result == 2)
            {
                MessageBox.Show("중복되는 아이디 입력");
            }
            else if (result == 3)
            {
                MessageBox.Show("중복되는 닉네임 입력");
            }
            else
            {
                MessageBox.Show("회원가입 완료");
            }
        }
Beispiel #2
0
        private void Start_Click(object sender, EventArgs e)
        {
            String nickname = Miqqa_sql.LogIn(username_login.Text, password_login.Text);

            if (nickname != null)
            {
                MessageBox.Show(nickname + "님, 로그인!");

                this.Visible = false;
                Stage_1 stage_1 = new Stage_1();
                stage_1.ShowDialog();
            }
            else
            {
                password_login.Clear();
                MessageBox.Show("아이디와 비밀번호를 다시 한 번 확인해주세요.");
            }
        }