예제 #1
0
        private void MyCourses_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (MyCourses.SelectedItem == null)
            {
                return;
            }
            // use a SqlAdapter to execute the query
            string Item = MyCourses.GetItemText(MyCourses.SelectedItem);

            if (Item == "NO Registered Courses")
            {
                return;
            }
            CourseDetails ShowCourseDetails = new CourseDetails(Item);

            ShowCourseDetails.ShowDialog();
        }
예제 #2
0
        protected void panelButton(object sender, EventArgs e, string coursename)
        {
            CourseDetails cd = new CourseDetails(coursename);

            cd.ShowDialog();
        }