Example #1
0
        private void CourseDeletebutton3_Click(object sender, EventArgs e)
        {
            int       id         = int.Parse(Ruff_label7.Text);
            CourseBLL aCourseBLL = new CourseBLL();
            bool      res        = aCourseBLL.DeleteBLL(id);

            if (res)
            {
                MessageBox.Show("Course deleted Successfully!!!");
                clearCourseTextBoxes();
                LoadCoursesDataGridView();
            }
            else
            {
                MessageBox.Show("Error!");
            }
        }