예제 #1
0
        private void stor_del()
        {
            wnDm wDm   = new wnDm();
            int  rsNum = wDm.deleteStor(txt_stor_cd.Text.ToString());

            if (rsNum == 0)
            {
                lbl_stor_gbn.Text   = "";
                txt_stor_cd.Enabled = true;
                txt_stor_cd.Text    = "";
                txt_stor_nm.Text    = "";
                txt_stor_cmt.Text   = "";
                btnDelete.Enabled   = true;
                stor_list();
                MessageBox.Show("성공적으로 삭제하였습니다.");
            }
            else if (rsNum == 1)
            {
                MessageBox.Show("삭제에 실패하였습니다");
            }
            else
            {
                MessageBox.Show("Exception 에러");
            }
        }