public void initializeRecommendationsPanel() { this.recom_innerPanel.Controls.Clear(); Label pageTitle = new Label(); pageTitle.Location = new Point(this.recom_innerPanel.Width/2-150,30); pageTitle.Text = "Perosanilized Recommendations"; pageTitle.Width = this.recom_innerPanel.Width / 2; this.recom_innerPanel.Controls.Add(pageTitle); Label currentTitle = new Label(); currentTitle.Location = new Point(20, 70); currentTitle.Text = "Recently Completed Lesson: "; currentTitle.Width = this.recom_innerPanel.Width / 2; this.recom_innerPanel.Controls.Add(currentTitle); Lesson recent = Controller.finishedLessons.ElementAt(Controller.finishedLessons.Count-1); Label currentLesson = new Label(); currentLesson.Location = new Point(60, 100); currentLesson.Text = recent.Title; currentLesson.ForeColor = Color.Black; currentLesson.Width = this.recom_innerPanel.Width / 2; this.recom_innerPanel.Controls.Add(currentLesson); Lesson next = new Lesson(); if(recent.Id <Controller.getLessons().Count-1) next = Controller.getLesson(recent.Id+1); Label nextTitle = new Label(); nextTitle.Location = new Point(20, 130); nextTitle.Text = "Next Lesson :"; nextTitle.Width = this.recom_innerPanel.Width / 2; this.recom_innerPanel.Controls.Add(nextTitle); Label nextLesson = new Label(); nextLesson.Location = new Point(60, 160); if (recent.Id < Controller.getLessons().Count - 1) nextLesson.Text = next.Title; else nextLesson.Text = ""; nextLesson.ForeColor = Color.Black; nextLesson.Width = this.recom_innerPanel.Width / 2; this.recom_innerPanel.Controls.Add(nextLesson); Label recomTitle = new Label(); recomTitle.Location = new Point(20, 190); recomTitle.Text = "System Recommendations :"; recomTitle.Width = this.recom_innerPanel.Width / 2; this.recom_innerPanel.Controls.Add(recomTitle); Recommender recom = new Recommender(next); Label recomLabel = new Label(); recomLabel.Location = new Point(60, 220); if (recom.calculateExpectedValue() >= 0.5) { recomLabel.Text = "Your performance in Course has been satisfactory so far;\nSYou can continue with next lesson: " + next.Title; } else { recomLabel.Text = "Based on your performance History in course; it is recommended that you revise "+ "the following Lessons: \n"; Controller.getPreReqsForLesson(next.Id); int offset = 0; for (int i = 0; i < next.preReqs.Count; i++) { Label l = new Label(); l.Location = new Point(60,270+offset); offset += 20; l.Width = this.recom_innerPanel.Width / 2; l.Text = next.preReqs.ElementAt(i).base_instance.Title; this.recom_innerPanel.Controls.Add(l); } } recomLabel.ForeColor = Color.Black; recomLabel.Width = this.recom_innerPanel.Width / 2; recomLabel.Height = 150; this.recom_innerPanel.Controls.Add(recomLabel); }
public void addLesson(Lesson l) { if (!Controller.finishedLessons.Contains(l)) Controller.finishedLessons.Add(l); }
public void addLesson(Lesson s) { this.lessons.Add(s); }
public LessonPreReq(Lesson l) { this.base_instance = l; }
public static List <Lesson> InitializeLessons() { List <Lesson> lessons = new List <Lesson>(); Chapter ch1 = new Chapter("Matrices", 1); Chapter ch2 = new Chapter("Kinametics", 2); Chapter ch3 = new Chapter("Dynamics", 3); Chapter ch4 = new Chapter("Turning Effect of Force", 4); Chapter ch5 = new Chapter("Gravitation", 5); Chapter ch6 = new Chapter("Work and Energy", 6); Chapter ch7 = new Chapter("Properties of Matter", 7); Chapter ch8 = new Chapter("Thermal Properties of Matter", 8); Chapter ch9 = new Chapter("Transfer of Heat", 9); Instructor ph = new Instructor("Dr.Pervaiz HoodBhoy"); lessons.Add(new Lesson(1, "1.Definition of Matrix", ph, ch1, 0.8)); lessons.Add(new Lesson(2, "2.Order of Matrix", ph, ch1, 0.8)); lessons.Add(new Lesson(3, "3.Row Matrix and Coloumn Matrix", ph, ch1, 0.6)); lessons.Add(new Lesson(4, "4.Square and Rectangular Matrices", ph, ch1, 0.8)); lessons.Add(new Lesson(5, "5.Null or Zero Matrix", ph, ch1, 0.8)); lessons.Add(new Lesson(6, "6.Transpose of a Matrix", ph, ch1, 0.7)); lessons.Add(new Lesson(7, "7.Negative of a Matrix", ph, ch1, 0.6)); lessons.Add(new Lesson(8, "8.Symmetric and Skew-symmetric Matrices", ph, ch1, 0.7)); lessons.Add(new Lesson(9, "9.Diagonal Matrix", ph, ch1, 0.4)); lessons.Add(new Lesson(10, "10.Scalar Matrix", ph, ch1, 0.5)); lessons.Add(new Lesson(11, "11.Identity Matrix", ph, ch1, 0.4)); lessons.Add(new Lesson(12, "12.Addition of Matrices", ph, ch1, 0.4)); lessons.Add(new Lesson(13, "13.Subtraction of Matrices", ph, ch1, 0.5)); lessons.Add(new Lesson(14, "14.Multiplication of a Matrix by a Real number", ph, ch1, 0.5)); lessons.Add(new Lesson(15, "15.Commutative Law under Addition of Matrices", ph, ch1, 0.3)); lessons.Add(new Lesson(16, "16.Associative Law under Addition of Matrices", ph, ch1, 0.5)); lessons.Add(new Lesson(17, "17.Additive Identity of a Matrix", ph, ch1, 0.3)); lessons.Add(new Lesson(18, "18.Additive Inverse of a Matrix", ph, ch1, 0.34)); lessons.Add(new Lesson(19, "19.Multiplication of Matrices", ph, ch1, 0.4)); lessons.Add(new Lesson(20, "20.Associative Law under Multiplication of Matrices", ph, ch1, 0.35)); lessons.Add(new Lesson(21, "21.Distributive Law of Multiplication over Addition for Matrices", ph, ch1, 0.54)); lessons.Add(new Lesson(22, "22.Commutative Law of Multiplication of Matrices for Matrices", ph, ch1, 0.2)); lessons.Add(new Lesson(1, "Rest and Motion", ph, ch2, 0.2)); lessons.Add(new Lesson(2, "Types of Motion", ph, ch2, 0.2)); lessons.Add(new Lesson(3, "Terms associated with Motion", ph, ch2, 0.2)); lessons.Add(new Lesson(4, "Scalars and Vectors", ph, ch2, 0.2)); lessons.Add(new Lesson(5, "Graphical Analysis of Motion", ph, ch2, 0.2)); lessons.Add(new Lesson(6, "Equations of Motions", ph, ch2, 0.2)); lessons.Add(new Lesson(7, "Motion due to Gravity", ph, ch2, 0.2)); lessons.Add(new Lesson(1, "Momentum", ph, ch3, 0.2)); lessons.Add(new Lesson(2, "Newtons laws of motion", ph, ch3, 0.2)); lessons.Add(new Lesson(3, "Friction", ph, ch3, 0.2)); lessons.Add(new Lesson(4, "Uniform Circular Motion", ph, ch3, 0.2)); lessons.Add(new Lesson(1, "Forces on Bodies", ph, ch4, 0.2)); lessons.Add(new Lesson(2, "Addition of Forces", ph, ch4, 0.2)); lessons.Add(new Lesson(3, "Resolution of Forces", ph, ch4, 0.2)); lessons.Add(new Lesson(4, "Momentum of a Force", ph, ch4, 0.2)); lessons.Add(new Lesson(5, "Principle of Moments", ph, ch4, 0.2)); lessons.Add(new Lesson(6, "Center of Mass", ph, ch4, 0.2)); lessons.Add(new Lesson(7, "Couple", ph, ch4, 0.2)); lessons.Add(new Lesson(8, "Couple", ph, ch4, 0.2)); lessons.Add(new Lesson(9, "Stability", ph, ch4, 0.2)); lessons.Add(new Lesson(1, "Law of Gravitation", ph, ch5, 0.2)); lessons.Add(new Lesson(2, "Measurment of mass of Erth", ph, ch5, 0.2)); lessons.Add(new Lesson(3, "Variation of g with Altitude", ph, ch5, 0.2)); lessons.Add(new Lesson(4, "Motion of Artificial satellites", ph, ch5, 0.2)); lessons.Add(new Lesson(1, "Work", ph, ch6, 0.2)); lessons.Add(new Lesson(2, "Energy", ph, ch6, 0.2)); lessons.Add(new Lesson(3, "Kinetic Energy", ph, ch6, 0.2)); lessons.Add(new Lesson(4, "Potential Energy", ph, ch6, 0.2)); lessons.Add(new Lesson(5, "Forms of Energy", ph, ch6, 0.2)); lessons.Add(new Lesson(6, "Interconversion of Energy", ph, ch6, 0.2)); lessons.Add(new Lesson(7, "Major sources of Energy", ph, ch6, 0.2)); lessons.Add(new Lesson(8, "Effiency", ph, ch6, 0.2)); lessons.Add(new Lesson(9, "Power", ph, ch6, 0.2)); lessons.Add(new Lesson(1, "Kinetic Molecular Model of Matter", ph, ch7, 0.2)); lessons.Add(new Lesson(2, "Density", ph, ch7, 0.2)); lessons.Add(new Lesson(3, "Pressure", ph, ch7, 0.2)); lessons.Add(new Lesson(4, "Atmosphere Pressure", ph, ch7, 0.2)); lessons.Add(new Lesson(5, "Pressure in Liquids", ph, ch7, 0.2)); lessons.Add(new Lesson(6, "Upthrust", ph, ch7, 0.2)); lessons.Add(new Lesson(7, "Principle of Floatation", ph, ch7, 0.2)); lessons.Add(new Lesson(8, "Elasticity", ph, ch7, 0.2)); lessons.Add(new Lesson(9, "Stress, Strain and Young Modulus", ph, ch7, 0.2)); lessons.Add(new Lesson(1, "Temperature and Heat", ph, ch8, 0.2)); lessons.Add(new Lesson(2, "Thermometer", ph, ch8, 0.2)); lessons.Add(new Lesson(3, "Specific Heat Capacity", ph, ch8, 0.2)); lessons.Add(new Lesson(4, "Latent heat of Fusion", ph, ch8, 0.2)); lessons.Add(new Lesson(5, "Latent Heat of Vaporization", ph, ch8, 0.2)); lessons.Add(new Lesson(6, "Evaporation", ph, ch8, 0.2)); lessons.Add(new Lesson(7, "Thermal Expansion", ph, ch8, 0.2)); lessons.Add(new Lesson(1, "The Three Processes of Heat Transfer", ph, ch9, 0.2)); lessons.Add(new Lesson(2, "Conduction", ph, ch9, 0.2)); lessons.Add(new Lesson(3, "Convection", ph, ch9, 0.2)); lessons.Add(new Lesson(4, "Radiation", ph, ch9, 0.2)); lessons.Add(new Lesson(5, "Consequences and everyday\nApplications of Heat Transfer", ph, ch9, 0.2)); int i = 0; foreach (Lesson s in lessons) { s.VideoPath = getVideoPath(i); i++; //s.VideoPath = @"C:\videos\1.mp4"; s.getQuizes(); Console.WriteLine(s.VideoPath); } Controller.selectedLesson = lessons.ElementAt(0); return(lessons); }
public static List<Lesson> InitializeLessons() { List<Lesson> lessons = new List<Lesson>(); Chapter ch1 = new Chapter("Matrices", 1); Chapter ch2 = new Chapter("Kinametics", 2); Chapter ch3 = new Chapter("Dynamics", 3); Chapter ch4 = new Chapter("Turning Effect of Force", 4); Chapter ch5 = new Chapter("Gravitation", 5); Chapter ch6 = new Chapter("Work and Energy", 6); Chapter ch7 = new Chapter("Properties of Matter", 7); Chapter ch8 = new Chapter("Thermal Properties of Matter", 8); Chapter ch9 = new Chapter("Transfer of Heat", 9); Instructor ph = new Instructor("Dr.Pervaiz HoodBhoy"); lessons.Add(new Lesson(1, "1.Definition of Matrix", ph, ch1,0.8)); lessons.Add(new Lesson(2, "2.Order of Matrix", ph, ch1, 0.8)); lessons.Add(new Lesson(3, "3.Row Matrix and Coloumn Matrix", ph, ch1,0.6)); lessons.Add(new Lesson(4, "4.Square and Rectangular Matrices", ph, ch1,0.8)); lessons.Add(new Lesson(5, "5.Null or Zero Matrix", ph, ch1,0.8)); lessons.Add(new Lesson(6, "6.Transpose of a Matrix", ph, ch1,0.7)); lessons.Add(new Lesson(7, "7.Negative of a Matrix", ph, ch1, 0.6)); lessons.Add(new Lesson(8, "8.Symmetric and Skew-symmetric Matrices", ph, ch1,0.7)); lessons.Add(new Lesson(9, "9.Diagonal Matrix", ph, ch1, 0.4)); lessons.Add(new Lesson(10, "10.Scalar Matrix", ph, ch1,0.5)); lessons.Add(new Lesson(11, "11.Identity Matrix", ph, ch1, 0.4)); lessons.Add(new Lesson(12, "12.Addition of Matrices", ph, ch1, 0.4)); lessons.Add(new Lesson(13, "13.Subtraction of Matrices", ph, ch1,0.5)); lessons.Add(new Lesson(14, "14.Multiplication of a Matrix by a Real number", ph, ch1, 0.5)); lessons.Add(new Lesson(15, "15.Commutative Law under Addition of Matrices", ph, ch1, 0.3)); lessons.Add(new Lesson(16, "16.Associative Law under Addition of Matrices", ph, ch1, 0.5)); lessons.Add(new Lesson(17, "17.Additive Identity of a Matrix", ph, ch1, 0.3)); lessons.Add(new Lesson(18, "18.Additive Inverse of a Matrix", ph, ch1,0.34)); lessons.Add(new Lesson(19, "19.Multiplication of Matrices", ph, ch1, 0.4)); lessons.Add(new Lesson(20, "20.Associative Law under Multiplication of Matrices", ph, ch1,0.35)); lessons.Add(new Lesson(21, "21.Distributive Law of Multiplication over Addition for Matrices", ph, ch1, 0.54)); lessons.Add(new Lesson(22, "22.Commutative Law of Multiplication of Matrices for Matrices", ph, ch1,0.2)); lessons.Add(new Lesson(1, "Rest and Motion", ph, ch2, 0.2)); lessons.Add(new Lesson(2, "Types of Motion", ph, ch2, 0.2)); lessons.Add(new Lesson(3, "Terms associated with Motion", ph, ch2, 0.2)); lessons.Add(new Lesson(4, "Scalars and Vectors", ph, ch2, 0.2)); lessons.Add(new Lesson(5, "Graphical Analysis of Motion", ph, ch2, 0.2)); lessons.Add(new Lesson(6, "Equations of Motions", ph, ch2, 0.2)); lessons.Add(new Lesson(7, "Motion due to Gravity", ph, ch2, 0.2)); lessons.Add(new Lesson(1, "Momentum", ph, ch3, 0.2)); lessons.Add(new Lesson(2, "Newtons laws of motion", ph, ch3, 0.2)); lessons.Add(new Lesson(3, "Friction", ph, ch3, 0.2)); lessons.Add(new Lesson(4, "Uniform Circular Motion", ph, ch3, 0.2)); lessons.Add(new Lesson(1, "Forces on Bodies", ph, ch4, 0.2)); lessons.Add(new Lesson(2, "Addition of Forces", ph, ch4, 0.2)); lessons.Add(new Lesson(3, "Resolution of Forces", ph, ch4, 0.2)); lessons.Add(new Lesson(4, "Momentum of a Force", ph, ch4, 0.2)); lessons.Add(new Lesson(5, "Principle of Moments", ph, ch4, 0.2)); lessons.Add(new Lesson(6, "Center of Mass", ph, ch4, 0.2)); lessons.Add(new Lesson(7, "Couple", ph, ch4, 0.2)); lessons.Add(new Lesson(8, "Couple", ph, ch4, 0.2)); lessons.Add(new Lesson(9, "Stability", ph, ch4, 0.2)); lessons.Add(new Lesson(1, "Law of Gravitation", ph, ch5, 0.2)); lessons.Add(new Lesson(2, "Measurment of mass of Erth", ph, ch5, 0.2)); lessons.Add(new Lesson(3, "Variation of g with Altitude", ph, ch5, 0.2)); lessons.Add(new Lesson(4, "Motion of Artificial satellites", ph, ch5, 0.2)); lessons.Add(new Lesson(1, "Work", ph, ch6, 0.2)); lessons.Add(new Lesson(2, "Energy", ph, ch6, 0.2)); lessons.Add(new Lesson(3, "Kinetic Energy", ph, ch6, 0.2)); lessons.Add(new Lesson(4, "Potential Energy", ph, ch6, 0.2)); lessons.Add(new Lesson(5, "Forms of Energy", ph, ch6, 0.2)); lessons.Add(new Lesson(6, "Interconversion of Energy", ph, ch6, 0.2)); lessons.Add(new Lesson(7, "Major sources of Energy", ph, ch6, 0.2)); lessons.Add(new Lesson(8, "Effiency", ph, ch6, 0.2)); lessons.Add(new Lesson(9, "Power", ph, ch6, 0.2)); lessons.Add(new Lesson(1, "Kinetic Molecular Model of Matter", ph, ch7, 0.2)); lessons.Add(new Lesson(2, "Density", ph, ch7, 0.2)); lessons.Add(new Lesson(3, "Pressure", ph, ch7, 0.2)); lessons.Add(new Lesson(4, "Atmosphere Pressure", ph, ch7, 0.2)); lessons.Add(new Lesson(5, "Pressure in Liquids", ph, ch7, 0.2)); lessons.Add(new Lesson(6, "Upthrust", ph, ch7, 0.2)); lessons.Add(new Lesson(7, "Principle of Floatation", ph, ch7, 0.2)); lessons.Add(new Lesson(8, "Elasticity", ph, ch7, 0.2)); lessons.Add(new Lesson(9, "Stress, Strain and Young Modulus", ph, ch7, 0.2)); lessons.Add(new Lesson(1, "Temperature and Heat", ph, ch8, 0.2)); lessons.Add(new Lesson(2, "Thermometer", ph, ch8, 0.2)); lessons.Add(new Lesson(3, "Specific Heat Capacity", ph, ch8, 0.2)); lessons.Add(new Lesson(4, "Latent heat of Fusion", ph, ch8, 0.2)); lessons.Add(new Lesson(5, "Latent Heat of Vaporization", ph, ch8, 0.2)); lessons.Add(new Lesson(6, "Evaporation", ph, ch8, 0.2)); lessons.Add(new Lesson(7, "Thermal Expansion", ph, ch8, 0.2)); lessons.Add(new Lesson(1, "The Three Processes of Heat Transfer", ph, ch9, 0.2)); lessons.Add(new Lesson(2, "Conduction", ph, ch9, 0.2)); lessons.Add(new Lesson(3, "Convection", ph, ch9, 0.2)); lessons.Add(new Lesson(4, "Radiation", ph, ch9, 0.2)); lessons.Add(new Lesson(5, "Consequences and everyday\nApplications of Heat Transfer", ph, ch9, 0.2)); int i = 0; foreach (Lesson s in lessons) { s.VideoPath = getVideoPath(i); i++; //s.VideoPath = @"C:\videos\1.mp4"; s.getQuizes(); Console.WriteLine(s.VideoPath); } Controller.selectedLesson = lessons.ElementAt(0); return lessons; }