public bool DelScheTest([PexAssumeUnderTest] ScheduleBLL target, string id) { bool result = target.DelSche(id); return(result); // TODO: add assertions to method ScheduleBLLTest.DelScheTest(ScheduleBLL, String) }
private void btnDel_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { string id = gvSchedule.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 (sche.DelSche(id) == true) { MessageBox.Show(dc.schedule("del")); } else { MessageBox.Show(dc.schedule("else")); } } loadata(); }