Beispiel #1
0
        private void btn2_Click(object sender, EventArgs e) //정보수정 버튼 클릭
        {
            if (btn2.Text == "정보수정")
            {
                p_Check = new Passwod_Check(this);
                p_Check.ShowDialog();

                if (p_Check.Yn)
                {
                    btn3.Show();
                    Tb6.ReadOnly = false;
                    Tb7.ReadOnly = false;
                    Tb8.ReadOnly = false;
                    Tb2.ReadOnly = true;
                    btnYn        = false;
                    btn1.Text    = "비밀번호 변경";
                    btn2.Text    = "수정완료";
                }
                p_Check.Close();
            }
            else if (btn2.Text == "수정완료")
            {
                GetUPDATE(Tb6.Text, Tb7.Text, Tb8.Text, Login.User_Number.ToString());

                Tb6.ReadOnly = true;
                Tb7.ReadOnly = true;
                Tb8.ReadOnly = true;

                btn2.Text = "정보수정";
                btn1.Text = "비밀번호 변경";
                btnYn     = true;
                btn3.Hide();
            }
        }
Beispiel #2
0
        private void btn1_Click(object sender, EventArgs e) //비밀번호 버튼 클릭
        {
            if (btn1.Text == "비밀번호 변경")
            {
                p_Check = new Passwod_Check(this);
                p_Check.ShowDialog();

                if (p_Check.Yn)
                {
                    btn3.Show();
                    Tb2.ReadOnly = false;
                    foreach (Hashtable ht in GetSelect(Login.User_Number.ToString()))
                    {
                        Tb2.Text = (ht["passwod"].ToString());
                        Tb6.Text = (ht["email"].ToString());
                        Tb7.Text = (ht["phone_number"].ToString());
                        Tb8.Text = (ht["address"].ToString());
                    }
                    Tb5.Text     = Tb5.Text.Substring(0, 10);
                    Tb6.ReadOnly = true;
                    Tb7.ReadOnly = true;
                    Tb8.ReadOnly = true;
                    btnYn        = false;
                    btn2.Text    = "정보수정";
                    btn1.Text    = "변경완료";
                    p_Check.Yn   = false;
                }
                p_Check.Close();
            }
            else if (btn1.Text == "변경완료")
            {
                GetUPDATE_Pass(Tb2.Text, Login.User_Number.ToString());

                List_View();

                Tb2.ReadOnly = true;


                btnYn = true;

                btn1.Text = "비밀번호 변경";
                btn2.Text = "정보수정";
                btn3.Hide();
            }
        }
Beispiel #3
0
        private void btn1_Click(object sender, EventArgs e) //비밀번호 버튼 클릭
        {
            if (btn1.Text == "비밀번호 변경")
            {
                p_Check = new Passwod_Check(this);
                p_Check.ShowDialog();

                if (p_Check.Yn)
                {
                    btn3.Show();
                    Tb2.ReadOnly = false;

                    Tb6.ReadOnly = true;
                    Tb7.ReadOnly = true;
                    Tb8.ReadOnly = true;
                    btnYn        = false;
                    btn2.Text    = "정보수정";
                    btn1.Text    = "변경완료";
                    p_Check.Yn   = false;
                }
                p_Check.Close();
            }
            else if (btn1.Text == "변경완료")
            {
                MessageBox.Show(Tb2.Text);
                MessageBox.Show(Login.User_Number.ToString());

                GetUPDATE_Pass(Tb2.Text, Login.User_Number.ToString());

                List_View();

                Tb2.ReadOnly = true;


                btnYn = true;

                btn1.Text = "비밀번호 변경";
                btn2.Text = "정보수정";
                btn3.Hide();
            }
        }