예제 #1
0
        public bool DelOutTest([PexAssumeUnderTest] SyllabusOutBLL target, string id)
        {
            bool result = target.DelOut(id);

            return(result);
            // TODO: add assertions to method SyllabusOutBLLTest.DelOutTest(SyllabusOutBLL, String)
        }
예제 #2
0
        private void btnDel_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            string idso = gvCourseOut.GetRowCellValue(index, this.ID).ToString();

            if (MessageBox.Show("Bạn có muốn xóa không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                if (syou.DelOut(idso) == true)
                {
                    MessageBox.Show(dc.sysllabusout("del"));
                }
                else
                {
                    MessageBox.Show(dc.sysllabusout("else"));
                }
                loadData();
            }
        }