예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            var s = (Subject)lbSubjects.SelectedItem;

            if (s != null)
            {
                controller.RemoveSubject(s.ID);
                lbSubjects.DataSource = null;
                lbSubjects.DataSource = controller.GetSubjects();
            }
        }