Пример #1
0
        public void set_schedule_Click(object sender, System.EventArgs e)
        {
            Student selected = (Student)this.student_list.SelectedItem;

            if (selected != null)
            {
                if (SqlWorker.DeleteStudent(selected))
                {
                    this.student_list.Items.Remove(selected);
                    MessageBox.Show("Student Removed");
                }
            }
        }