コード例 #1
0
        public static void Main()
        {
            LocalCourse localCourse = new LocalCourse("Databases", "Toni Storaro", "Ultimate");

            Console.WriteLine(localCourse);

            localCourse.ChangeLab("Enterprise");
            Console.WriteLine(localCourse);

            localCourse.AddStudents(null);
            Console.WriteLine(localCourse);

            localCourse.ChangeTeacher("Svetlin Nakov");
            localCourse.AddStudents("Milena");
            localCourse.AddStudents("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development",
                "Mario Peshev",
                new List <string>()
            {
                "Thomas", "Ani", "Steve"
            },
                "Karnobat");

            Console.WriteLine(offsiteCourse);
        }
コード例 #2
0
        static void Main()
        {
            LocalCourse localCourse = new LocalCourse("Databases");

            Console.WriteLine(localCourse);

            localCourse.Lab = "Enterprise";
            Console.WriteLine(localCourse);

            localCourse.Students = new List <string>()
            {
                "Peter", "Maria"
            };
            Console.WriteLine(localCourse);

            localCourse.Teacher = "Svetlin Nakov";
            localCourse.Students.Add("Milena");
            localCourse.Students.Add("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development",
                "Mario Peshev",
                new List <string>()
            {
                "Thomas", "Ani", "Steve"
            }
                );

            Console.WriteLine(offsiteCourse);
        }
コード例 #3
0
        public static void Main()
        {
            LocalCourse localCourse = new LocalCourse(
                "Databases",
                "Bill Gates",
                new List <string> {
                "Tyrion", "Jon Snow"
            },
                "Testov Lab");

            Console.WriteLine(localCourse);

            localCourse.Lab = "Enterprise";
            Console.WriteLine(localCourse);

            localCourse.Students = new List <string> {
                "Peter", "Maria"
            };
            Console.WriteLine(localCourse);

            localCourse.TeacherName = "Svetlin Nakov";
            localCourse.Students.Add("Milena");
            localCourse.Students.Add("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development",
                "Mario Peshev",
                new List <string> {
                "Thomas", "Ani", "Steve"
            },
                "Varna");

            Console.WriteLine(offsiteCourse);
        }
コード例 #4
0
        public static void Main()
        {
            string      localCorseName = "Databases";
            LocalCourse localCourse    = new LocalCourse(localCorseName);

            Console.WriteLine(localCourse);

            localCourse.Lab = "Enterprise";
            Console.WriteLine(localCourse);

            localCourse.Students = new List <string>()
            {
                "Peter", "Maria"
            };
            Console.WriteLine(localCourse);

            localCourse.TeacherName = "Svetlin Nakov";
            localCourse.Students.Add("Milena");
            localCourse.Students.Add("Todor");
            Console.WriteLine(localCourse);

            string         courseName   = "PHP and WordPress Development";
            string         teacherName  = "Mario Peshev";
            IList <string> studentsName = new List <string>()
            {
                "Thomas", "Ani", "Steve"
            };

            OffsiteCourse offsiteCourse = new OffsiteCourse(courseName, teacherName, studentsName);

            Console.WriteLine(offsiteCourse);
        }
コード例 #5
0
        public static void Main()
        {
            var localCourse = new LocalCourse(
                "Databases",
                "Svetlin Nakov",
                "Enterprise");

            Console.WriteLine(localCourse);

            localCourse.AddStudents("Milena", "Todor");
            localCourse.AddStudents(new List <string>()
            {
                "Peter", "Maria"
            });

            Console.WriteLine(localCourse);

            var offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development",
                "Mario Peshev",
                "San Francisco",
                new List <string>()
            {
                "Thomas", "Ani", "Steve"
            });

            Console.WriteLine(offsiteCourse);

            offsiteCourse.AddStudents(new[] { "Jane", "Marry" });

            Console.WriteLine(offsiteCourse);
        }
コード例 #6
0
        public static void Main()
        {
            List <string> students = new List <string>()
            {
                "Peter", "Maria"
            };
            string lab = "Ultimate";

            LocalCourse localCourse = new LocalCourse("Databases", "Ivan Ivanov", students, lab);

            Console.WriteLine(localCourse);

            localCourse.Lab = "Enterprise";
            Console.WriteLine(localCourse);
            Console.WriteLine(localCourse);

            localCourse.TeacherName = "Svetlin Nakov";
            localCourse.Students.Add("Milena");
            localCourse.Students.Add("Todor");
            Console.WriteLine(localCourse);

            string        town          = "The town";
            OffsiteCourse offsiteCourse = new OffsiteCourse("PHP and WordPress Development", "Mario Peshev", new List <string>()
            {
                "Thomas", "Ani", "Steve"
            }, town);

            Console.WriteLine(offsiteCourse);
        }
コード例 #7
0
        private static void Main()
        {
            LocalCourse localCourse = new LocalCourse("Databases");

            Console.WriteLine(localCourse);

            localCourse.Lab = "Enterprise";
            Console.WriteLine(localCourse);

            localCourse.Students = new List <Student> {
                new Student("Peter"), new Student("Maria")
            };
            Console.WriteLine(localCourse);

            localCourse.TeacherName = "Svetlin Nakov";
            localCourse.Students.Add(new Student("Milena"));
            localCourse.Students.Add(new Student("Todor"));
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development",
                "Mario Peshev",
                new List <Student> {
                new Student("Thomas"), new Student("Ani"), new Student("Steve")
            });

            Console.WriteLine(offsiteCourse);
        }
コード例 #8
0
ファイル: CoursesExamples.cs プロジェクト: jesusico83/Telerik
        static void Main()
        {
            LocalCourse localCourse = new LocalCourse("Databases");
            Console.WriteLine(localCourse);

            localCourse.Lab = "Enterprise";
            Console.WriteLine(localCourse);

            localCourse.Students = new List<string>()
            {
                "Peter",
                "Maria"
            };
            Console.WriteLine(localCourse);

            localCourse.TeacherName = "Svetlin Nakov";
            localCourse.Students.Add("Milena");
            localCourse.Students.Add("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development", "Mario Peshev",
                new List<string>()
                {
                    "Thomas",
                    "Ani",
                    "Steve"
                });
            Console.WriteLine(offsiteCourse);
        }
コード例 #9
0
        public static void Main()
        {
            var localCourse = new LocalCourse(
                "Databases",
                "Svetlin Nakov",
                "Enterprise");

            Console.WriteLine(localCourse);

            localCourse.AddStudents("Milena", "Todor");
            localCourse.AddStudents(new List<string>() { "Peter", "Maria" });

            Console.WriteLine(localCourse);

            var offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development",
                "Mario Peshev",
                "San Francisco",
                new List<string>() { "Thomas", "Ani", "Steve" });

            Console.WriteLine(offsiteCourse);

            offsiteCourse.AddStudents(new[] { "Jane", "Marry" });

            Console.WriteLine(offsiteCourse);
        }
コード例 #10
0
        public static void Main()
        {
            ILocalCourse localCourse = new LocalCourse("Database", "Nakov", "Enterprise");

            Console.WriteLine(localCourse);

            IStudent peter = new Student("Peter", "Peshov");
            IStudent maria = new Student("Maria", "Marianova"); // Seems legit.

            localCourse.AddStudents(peter, maria);
            Console.WriteLine(localCourse);

            IStudent milena = new Student("Milena", "Milenova");
            IStudent todor  = new Student("Todor", "Petkov");

            localCourse.AddStudents(milena, todor);
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development",
                "Mario Peshev",
                new List <IStudent>()
            {
                new Student("Thomas", "Edinburg"),
                new Student("Ani", "Beleva"),
                new Student("Steve", "Petrov")
            },
                "Blagoevgrad");

            Console.WriteLine(offsiteCourse);
        }
コード例 #11
0
        public static void Main()
        {
            LocalCourse localCourse = new LocalCourse(
                "Databases",
                "Svetlin Nakov",
                new List <string>()
            {
                "Peter", "Maria"
            },
                "Enterprise");

            Console.WriteLine(localCourse);

            localCourse.AddStudent("Milena");
            localCourse.AddStudent("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development",
                "Mario Peshev",
                new List <string>()
            {
                "Thomas", "Ani", "Steve"
            },
                "Some random town");

            Console.WriteLine(offsiteCourse);
        }
コード例 #12
0
ファイル: CoursesExamples.cs プロジェクト: krumov/telerik
        static void Main()
        {
            IList<Student> students = new List<Student>()
            {
                new Student("Peter"),
                new Student("Maria")
            };
            LocalCourse localCourse = new LocalCourse("Databases",
                new Teacher("Svetlin Nakov"), students, "Enterprise");
            Console.WriteLine(localCourse);

            localCourse.Lab = "Enterprise";
            Console.WriteLine(localCourse);

            localCourse.Students.Add(new Student("Milena"));
            localCourse.Students.Add(new Student("Todor"));
            Console.WriteLine(localCourse);

            IList<Student> offsiteStudents = new List<Student>()
            {
                new Student("Thomas"),
                new Student("Ani"),
                new Student("Steve"),
            };
            OffsiteCourse offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development", new Teacher("Mario Peshev"),
                offsiteStudents, "Burgas");
            Console.WriteLine(offsiteCourse);
        }
コード例 #13
0
        public static void Main()
        {
            LocalCourse localCourse = new LocalCourse("Databases",
                                                      "Svetlin Nakov",
                                                      "Enterprise");

            Console.WriteLine(localCourse);

            LocalCourse otherLocalCourse = new LocalCourse("Databases",
                                                           "Svetlin Nakov",
                                                           "Enterprise",
                                                           new List <string>()
            {
                "Peter", "Maria"
            });

            Console.WriteLine(otherLocalCourse);

            localCourse.Students.Add("Milena");
            localCourse.Students.Add("Todor");
            Console.WriteLine(localCourse);

            otherLocalCourse.Students.Add("Milena");
            otherLocalCourse.Students.Add("Todor");
            Console.WriteLine(otherLocalCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse("PHP and WordPress Development",
                                                            "Mario Peshev",
                                                            "Sofia");

            Console.WriteLine(offsiteCourse);
            offsiteCourse.Students.Add("Pesho");
            offsiteCourse.Students.Add("Gosho");
            Console.WriteLine(offsiteCourse);

            OffsiteCourse otherOffsiteCourse = new OffsiteCourse("PHP and WordPress Development",
                                                                 "Mario Peshev",
                                                                 "Vratsa",
                                                                 new List <string>()
            {
                "Thomas", "Ani", "Steve"
            });

            Console.WriteLine(otherOffsiteCourse);
            otherOffsiteCourse.Students.Add("Damian");
            otherOffsiteCourse.Students.Add("Zhana");
            Console.WriteLine(otherOffsiteCourse);

            List <Course> courses = new List <Course>()
            {
                localCourse, offsiteCourse, otherLocalCourse, otherOffsiteCourse
            };

            foreach (var course in courses)
            {
                Console.WriteLine(course);
            }
        }
コード例 #14
0
        public static void Main()
        {
            LocalCourse localCourse = new LocalCourse("JS DOM and UI", "Doncho Minkov", new List<string>() { "Peter", "Maria" }, "Enterprise");
            Console.WriteLine(localCourse);
            localCourse.AddStudets("Milena");
            localCourse.AddStudets("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse("DSA", "Ivaylo Kenov", new List<string>() { "Thomas", "Ani", "Steve" }, "Sofia");
            Console.WriteLine(offsiteCourse);
        }
コード例 #15
0
        public static void Main()
        {
            LocalCourse localCourse = new LocalCourse("HQC", "Nikolay Kostov", new List<string>() { "Peter", "Maria" }, "Enterprise");
            Console.WriteLine(localCourse);
            localCourse.Students.Add("Milena");
            localCourse.Students.Add("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse("DSA", "Nikolay Kostov", new List<string>() { "Thomas", "Ani", "Steve" }, "Sofia");
            Console.WriteLine(offsiteCourse);
        }
コード例 #16
0
        public static void Main()
        {
            LocalCourse localCourse = new LocalCourse("HQC", "Marin Jelev", new List<string>() { "Peter", "Maria" }, "Enterprise");
            Console.WriteLine(localCourse);
            localCourse.Students.Add("Marin");
            localCourse.Students.Add("Aleks");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse("DSA", "Aleks Sklqrov", new List<string>() { "Vasil", "Dimitar", "Sophia" }, "Sofia");
            Console.WriteLine(offsiteCourse);
        }
コード例 #17
0
        private static void OffsiteCourseExample(IList <string> students)
        {
            var offsiteCourseName        = "PHP and WordPress Development";
            var offsiteCourseTeacherName = "Mario Peshev";
            var offsiteCourseTown        = "Dobrich";

            var offsiteCourse = new OffsiteCourse(offsiteCourseName, offsiteCourseTeacherName, offsiteCourseTown);

            offsiteCourse.AddStudents(students);

            Console.WriteLine(offsiteCourse);
        }
コード例 #18
0
ファイル: CoursesExamples.cs プロジェクト: darkyto/HQC-Course
        public static void Main()
        {
            LocalCourse localCourse = new LocalCourse("JS OOP", "Ivan Ivanov", new List<string>() { "Peter", "Maria" }, "Enterprise");
            Console.WriteLine(localCourse);
            localCourse.Students.Add("Gosho");
            localCourse.Students.Add("Pesho");
            localCourse.Students.Add("Stamatka");
            localCourse.Students.Add("Vania");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse("JS Fundamental", "Maria Petrova", new List<string>() { "Mitko", "Stamat", "John Snow" }, "Sofia");
            Console.WriteLine(offsiteCourse);
        }
コード例 #19
0
        public static void Main()
        {
            LocalCourse localCourse = new LocalCourse("Databases", new List<string>{"Svetlin Nakov"}, new List<string> { "Gosho, Toshka" }, "12");
            Console.WriteLine(localCourse);

            localCourse.Students.Add("Milena");
            localCourse.Students.Add("Todor");
            localCourse.Teachers.Add("Bill Gates");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development", new List<string> { "Mario Peshev" }, new List<string>() { "Thomas", "Ani", "Steve" }, "Smyadovo");
            Console.WriteLine(offsiteCourse);
        }
コード例 #20
0
      static void Main()
      {
          Course localCourse = new LocalCourse(
              "Databases", "Svetlin Nakov", 
              new List<string> { "Peter", "Maria", "Milena", "Todor"},
              "Enterprise");
          Console.WriteLine(localCourse);
 
          Course offsiteCourse = new OffsiteCourse(
              "PHP and WordPress Development", "Mario Peshev", 
              new List<string>() { "Thomas", "Ani", "Steve" },
              "Sofia");
          Console.WriteLine(offsiteCourse);
      }
コード例 #21
0
        static void Main()
        {
            LocalCourse localCourse = new LocalCourse("Databases", "Nakov", "Ultimate");
            Console.WriteLine(localCourse);

            localCourse.AddStudents("Peter", "Maria");
            Console.WriteLine(localCourse);

            localCourse.AddStudents("Milena");
            localCourse.AddStudents("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse("PHP Development", "Mario Peshev", "Enterprise");
            offsiteCourse.AddStudents("Thomas", "Ani", "Steve");
            Console.WriteLine(offsiteCourse);
        }
コード例 #22
0
ファイル: CoursesExamples.cs プロジェクト: stoyans/Telerik
        public static void Main()
        {
            LocalCourse localCourse = new LocalCourse("Database", "Svetlin Nakov", new List<string>() { "Peter", "Maria", "Milena", "Todor" }, "Enterprise");
            Console.WriteLine(localCourse.ToString());

            OffsiteCourse offsiteCourse = new OffsiteCourse("PHP and WordPress Development", "Mario Peshev", new List<string>() { "Thomas", "Ani", "Steve" }, "Sofia");
            Console.WriteLine(offsiteCourse);

            List<Course> courses = new List<Course>();
            courses.Add(localCourse);
            courses.Add(offsiteCourse);

            foreach (var course in courses)
            {
                Console.WriteLine(course.Name);
            }
        }
コード例 #23
0
        public static void Main()
        {
            OffsiteCourse offsiteCourse = new OffsiteCourse(
                "C#",
                "Nakov",
                new List<string>() { "Thomas", "Ani", "Steve" },
                "Sofiq");

            LocalCourse localCourse = new LocalCourse(
                "C#",
                "Nakov",
                new List<string>() { "Gosho", "Pesho", "Rambo" },
                "light");

            Console.WriteLine(offsiteCourse.ToString());
            Console.WriteLine(localCourse.ToString());
        }
コード例 #24
0
        static void Main()
        {
            LocalCourse localCourse = new LocalCourse("Databases", "Nakov", "Ultimate");

            Console.WriteLine(localCourse);

            localCourse.AddStudents("Peter", "Maria");
            Console.WriteLine(localCourse);

            localCourse.AddStudents("Milena");
            localCourse.AddStudents("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse("PHP Development", "Mario Peshev", "Enterprise");

            offsiteCourse.AddStudents("Thomas", "Ani", "Steve");
            Console.WriteLine(offsiteCourse);
        }
コード例 #25
0
        public static void Main()
        {
            Course localCourse = new LocalCourse("Databases", "Svetlin Nakov", "Enterprise");
            Console.WriteLine(localCourse);

            var students = new[] { "Peter", "Maria" };
            localCourse.AddStudent(students);
            localCourse.AddStudent("Milena");
            localCourse.AddStudent("Todor");
            Console.WriteLine(localCourse);

            Course offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development",
                "Mario Peshev",
                "Varna",
                new[] { "Thomas", "Ani", "Steve" });
            Console.WriteLine(offsiteCourse);
        }
コード例 #26
0
        public static void Main()
        {
            LocalCourse localCourse = new LocalCourse("HQC", "Nikolay Kostov", new List <string>()
            {
                "Peter", "Maria"
            }, "Enterprise");

            Console.WriteLine(localCourse);
            localCourse.Students.Add("Milena");
            localCourse.Students.Add("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse("DSA", "Nikolay Kostov", new List <string>()
            {
                "Thomas", "Ani", "Steve"
            }, "Sofia");

            Console.WriteLine(offsiteCourse);
        }
コード例 #27
0
ファイル: CoursesExamples.cs プロジェクト: unbelt/SoftUni
        public static void Main()
        {
            LocalCourse localCourse = new LocalCourse("HQ Code");
            Console.WriteLine(localCourse);

            localCourse.Lab = "SoftUni Lab";
            Console.WriteLine(localCourse);

            localCourse.Students = new List<string>() { "Pesho", "Maria" };
            Console.WriteLine(localCourse);

            localCourse.TeacherName = "Svetlin Nakov";
            localCourse.Students.Add("Ivan");
            localCourse.Students.Add("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse("PHP and WordPress Development", "Mario Peshev", new List<string>() { "Thomas", "Ani", "Steve" });
            Console.WriteLine(offsiteCourse);
        }
コード例 #28
0
        static void Main()
        {
            LocalCourse localCourse = new LocalCourse("Databases", "SomeGuy");
            Console.WriteLine(localCourse);

            localCourse.AssignLab("Enterprise");
            Console.WriteLine(localCourse);

            localCourse.AddStudents(new List<string>() { "Peter", "Maria" });
            Console.WriteLine(localCourse);

            localCourse.AddStudent("Milena");
            localCourse.AddStudent("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development", "Mario Peshev",
                new List<string>() { "Thomas", "Ani", "Steve" });
            Console.WriteLine(offsiteCourse);
            Console.ReadKey();
        }
コード例 #29
0
        public static void Main()
        {
            Course localCourse = new LocalCourse("Databases", "Svetlin Nakov", "Enterprise");

            Console.WriteLine(localCourse);

            var students = new[] { "Peter", "Maria" };

            localCourse.AddStudent(students);
            localCourse.AddStudent("Milena");
            localCourse.AddStudent("Todor");
            Console.WriteLine(localCourse);

            Course offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development",
                "Mario Peshev",
                "Varna",
                new[] { "Thomas", "Ani", "Steve" });

            Console.WriteLine(offsiteCourse);
        }
コード例 #30
0
        static void Main()
        {
            LocalCourse localCourse = new LocalCourse("DateBase", "Petar Petrov", "OpenSource");

            Console.WriteLine(localCourse);

            localCourse.AddStudent("Peter");
            localCourse.AddStudent("Maria");
            Console.WriteLine(localCourse);

            localCourse.AddStudent("Milena");
            localCourse.AddStudent("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse("PHP and WordPress Development", "Mario Peshev", "Plovdiv");

            offsiteCourse.AddStudent("Thomas");
            offsiteCourse.AddStudent("Ani");
            offsiteCourse.AddStudent("Steve");
            Console.WriteLine(offsiteCourse);
        }
コード例 #31
0
        private static void Main()
        {
            LocalCourse localCourse = new LocalCourse("DataBase", "Alex Den", "OpenSource");

            Console.WriteLine(localCourse);

            localCourse.AddStudent("Alex");
            localCourse.AddStudent("Pel");
            Console.WriteLine(localCourse);

            localCourse.AddStudent("Amg");
            localCourse.AddStudent("Lek");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse(".net programming", "George Men", "Sofia");

            offsiteCourse.AddStudent("Den");
            offsiteCourse.AddStudent("Jo");
            offsiteCourse.AddStudent("Omer");
            Console.WriteLine(offsiteCourse);
        }
コード例 #32
0
        public static void Main()
        {
            List<string> students = new List<string>() { "Peter", "Maria" };
            string lab = "Ultimate";

            LocalCourse localCourse = new LocalCourse("Databases", "Ivan Ivanov", students, lab);
            Console.WriteLine(localCourse);

            localCourse.Lab = "Enterprise";
            Console.WriteLine(localCourse);
            Console.WriteLine(localCourse);

            localCourse.TeacherName = "Svetlin Nakov";
            localCourse.Students.Add("Milena");
            localCourse.Students.Add("Todor");
            Console.WriteLine(localCourse);

            string town = "The town";
            OffsiteCourse offsiteCourse = new OffsiteCourse("PHP and WordPress Development", "Mario Peshev", new List<string>() { "Thomas", "Ani", "Steve" }, town);
            Console.WriteLine(offsiteCourse);
        }
コード例 #33
0
        public static void Main()
        {
            var localCourse = new LocalCourse("JS OOP", "Doncho Minkov", new List <string>()
            {
                "Pesho", "Gosho", "Tosho"
            }, "Enterprise Lab");

            Console.WriteLine(localCourse);

            localCourse.Students.Add("Neda");
            localCourse.Students.Add("Andrea");

            Console.WriteLine(localCourse);

            var offsiteCourse = new OffsiteCourse("JS APPs", "Doncho Minkov", new List <string>()
            {
                "Jhon", "Jane", "Mark"
            }, "Sofia Lab");

            Console.WriteLine(offsiteCourse);
        }
コード例 #34
0
ファイル: CoursesExamples.cs プロジェクト: sytolk/SoftUni
        static void Main()
        {
            LocalCourse localCourse = new LocalCourse("Databases");

            Console.WriteLine(localCourse);

            localCourse.LabName = "Enterprise";
            Console.WriteLine(localCourse);

            localCourse.TeacherName = "Svetlin Nakov";
            localCourse.AddStudent("Milena");
            localCourse.AddStudent("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse("PHP and WordPress Development", "Mario Peshev");

            offsiteCourse.AddStudent("Thomas");
            offsiteCourse.AddStudent("Ani");
            offsiteCourse.AddStudent("Steve");

            Console.WriteLine(offsiteCourse);
        }
コード例 #35
0
        public static void Run()
        {
            var localCourse = new LocalCourse(
                "Databases",
                "Ivan Todorov",
                new List <string> {
                "Gosho", "Pesho"
            },
                "SomeLab");

            Console.WriteLine(localCourse);

            var offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development",
                "Mario Peshev",
                new List <string>()
            {
                "Thomas", "Ani", "Steve"
            },
                "SomeTown");

            Console.WriteLine(offsiteCourse);
        }
コード例 #36
0
        public static void Main()
        {
            var highQualityCodeStudents = new List<Student>();

            Student ivan = new Student("Ivan", "Petrov", 20);
            Student maria = new Student("Maria", "Georgieva", 18);

            highQualityCodeStudents.Add(ivan);
            highQualityCodeStudents.Add(maria);

            var highQualityCodeTeachers = new List<Teacher>();

            Teacher kenov = new Teacher("Ivaylo", "Kenov", 1337);
            Teacher kostov = new Teacher("Nikolay", "Kostov", 666);

            highQualityCodeTeachers.Add(kenov);
            highQualityCodeTeachers.Add(kostov);

            LocalCourse highQualityCode = new LocalCourse("High quality code", highQualityCodeTeachers, highQualityCodeStudents, "Ultimate");
            Console.WriteLine(highQualityCode);

            var systemAdministrationStudents = new List<Student>();

            systemAdministrationStudents.Add(ivan);
            systemAdministrationStudents.Add(maria);

            var systemAdministrationTeachers = new List<Teacher>();

            Teacher krokodila = new Teacher("Vasil", "Kolev", 1337);
            Teacher hackman = new Teacher("Marian", "Marinov", 666);

            systemAdministrationTeachers.Add(krokodila);
            systemAdministrationTeachers.Add(hackman);

            OffsiteCourse systemAdministration = new OffsiteCourse("System administration", systemAdministrationTeachers, systemAdministrationStudents, "Durankulak");
            Console.WriteLine(systemAdministration);
        }
コード例 #37
0
        private static void TestCourses()
        {
            LocalCourse localCourse = new LocalCourse("Databases");

            Console.WriteLine(localCourse);

            localCourse.Lab = "Enterprise";
            Console.WriteLine(localCourse);

            localCourse.Students = new List <Student>()
            {
                new Student("Peter", "Petrov", "12345"),
                new Student("Maria", "Petrova", "12346"),
                new Student("Gosho", "Petrov", "12347")
            };

            Console.WriteLine(localCourse);

            localCourse.TeacherName = "Svetlin Nakov";
            localCourse.AddStudent(new Student("Milena", "Petrova", "12348"));
            localCourse.AddStudent(new Student("Todor", "Petrov", "12349"));

            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development",
                "Mario Peshev",
                new List <Student>()
            {
                new Student("Mimi", "Petrovs", "54321"),
                new Student("Poli", "Petrova", "54320"),
                new Student("Stamat", "Petrov", "54327")
            });

            Console.WriteLine(offsiteCourse);
        }