Ejemplo n.º 1
0
        /// <summary>
        /// 확인 버튼 클릭시 발생하는 이벤트
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn_ok_Click(object sender, EventArgs e)
        {
            string    type_u = "seller";
            Seller_Vo sv_sub = new Seller_Vo()
            {
                Seller_NO    = Int32.Parse(lbl_No.Text),
                Seller_state = s_s,
                Join_state   = j_s
            };

            if (!sv.Equals(sv_sub))
            {
                var result = MessageBox.Show("수정 하시겠습니까?", "수정", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);
                if (result == DialogResult.OK)
                {
                    if (new Admin_Dao().Update_state_ob(sv_sub, type_u))
                    {
                        MessageBox.Show("수정 성공");
                        Admin_main ad = (Admin_main)Owner;
                        ad.Pro_Temp = true;
                    }
                }
                else
                {
                    seller_Detail_Load(null, null);
                }
            }
            Close();
        }