Пример #1
0
        public static void HandleAddCourse(ListView lvwCourse, Course course)
        {
            bool courseResult = CourseDAL.CreateCourse(course);

            if (courseResult)
            {
                ListViewItem item = CourseModelToListViewItem(course);
                lvwCourse.Items.Insert(0, item.Clone() as ListViewItem);

                // Select New Item When Create
                lvwCourse.Items[0].Selected = true;
                lvwCourse.Select();
            }
        }