예제 #1
0
파일: AdminPanel.cs 프로젝트: punidev/Trash
        private void delteacher_Click(object sender, EventArgs e)
        {
            var selectedItem = lbTeachers.SelectedItem as Teachers;

            if (selectedItem == null)
            {
                return;
            }
            DBUtils.DeleteTable(selectedItem.Name, "teacher", DBUtils.Teacherconn);
            Ref();
        }
예제 #2
0
        private void EditBtn_Click(object sender, EventArgs e)
        {
            var selectedItem = lbStudents.SelectedItem as Students;

            if (selectedItem == null)
            {
                return;
            }
            DBUtils.DeleteTable(selectedItem.Name);
            Ref();
        }