Ejemplo n.º 1
0
        private static int AddCourse()
        {
            var course = new Course()
            {
                name = "MyCourse"
            };

            try
            {                
                return _coursesRepository.Add(course).Value;
            }
            catch (Exception e)
            {
                Console.WriteLine("An exception occurred while adding course: {0}", e);
                throw;
            }            
        }
 private void InitCourseTreeView(Course currentCourseModel)
 {
     moduleList = new ObservableCollection<ObservableModuleModel>(ConvertToObservable(currentCourseModel.modules));
     CoursesTreeView.DataContext = moduleList;
 }
 public CourseMenuPanel(IAuthenticationService accountService, Course courseModel)
     :this()
 {
     _authenticationService = accountService;            
     _courseModel = courseModel;
 }
Ejemplo n.º 4
0
 public static void GetCurseMenuPanel(IAuthenticationService accountService, Course courseModel)
 {            
     InitTopMenuPanel(new CourseTopMenuPanel(accountService, courseModel));
     InitContentPanel(new CourseMenuPanel(accountService, courseModel));                       
 }