本文整理汇总了C#中ITeacher类的典型用法代码示例。如果您正苦于以下问题:C# ITeacher类的具体用法?C# ITeacher怎么用?C# ITeacher使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ITeacher类属于命名空间,在下文中一共展示了ITeacher类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Course
protected Course(string name, ITeacher teacher)
{
this.Name = name;
this.Teacher = teacher;
program = new List<string>();
}
示例2: CreateOffsiteCourse
public IOffsiteCourse CreateOffsiteCourse(string name, ITeacher teacher, string town)
{
//returns a offsiteCourse object
IOffsiteCourse newLocalCourse = new OffsiteCourse(name, teacher, town);
return newLocalCourse;
}
示例3: CreateLocalCourse
public ILocalCourse CreateLocalCourse(string name, ITeacher teacher, string lab)
{
//returns a localCourse object
ILocalCourse newLocalCourse = new LocalCourse(name, teacher, lab);
return newLocalCourse;
}
示例4: Course
public Course(string name, ITeacher teacher)
{
this.Name = name;
this.Teacher = teacher;
this.Topics = new List<string>();
}
示例5: AddTeacher
public int AddTeacher(ITeacher teacher)
{
var id = this.idProvider.GenerateTeacherId();
this.teachers.Entities.Add(id, teacher);
return id;
}
示例6: ClassInfo
public ClassInfo(DateTime dateOfConduction, DateTime classStartHour, DateTime classEndHour, ITeacher teacher, ICourse course)
{
this.DateOfConduction = dateOfConduction;
this.ClassStartHour = classStartHour;
this.ClassEndHour = classEndHour;
this.ClassLengthInMinutes = this.CalculateClassLengthInMinutes(this.ClassStartHour, this.ClassEndHour);
this.ConductedClassHours = this.CalculateNumberOfHoursTaken(this.ClassLengthInMinutes);
this.Teacher = teacher;
this.Course = course;
}
示例7: LocalCourse
public LocalCourse(string name, ITeacher teacher, string lab)
: base(name, teacher)
{
if (lab != null)
{
this.Lab = lab;
}
else
{
throw new ArgumentNullException();
}
}
示例8: OffsiteCourse
public OffsiteCourse(string name, ITeacher teacher, string town)
: base(name, teacher)
{
if (town != null)
{
this.Town = town;
}
else
{
throw new ArgumentNullException();
}
}
示例9: LocalCourses
public LocalCourses(string name, ITeacher teacher, string lab)
{
if (name == null || lab == null)
{
throw new ArgumentNullException();
}
this.Topic = new List<string>();
this.Type = CourseType.LocalCourse;
this.Name = name;
this.Teacher = teacher;
this.Lab = lab;
}
示例10: Course
public Course(string name, ITeacher teacher)
{
if (name != null)
{
this.Teacher = teacher;
this.Name = name;
this.Topics = new List<string>();
}
else
{
throw new ArgumentNullException();
}
}
示例11: OffsiteCourses
public OffsiteCourses(string name, ITeacher teacher, string town)
{
if (name == null || town == null)
{
throw new ArgumentNullException();
}
else
{
this.Topic = new List<string>();
this.Type = CourseType.OffsiteCourse;
this.Name = name;
this.Teacher = teacher;
this.Town = town;
}
}
示例12: Automata
public Automata( ITeacher te, DayPeriod time)
{
Console.Out.Write("Create Automata Course object : ");
Console.Out.WriteLine(time);
gradCourse = false;
}
示例13: Course
protected Course(string name, ITeacher teacher)
: base(name)
{
this.Teacher = teacher;
this.courseTopics = new List<string>();
}
示例14: Course
protected Course(string name, ITeacher teacher)
{
this.Name = name;
this.Teacher = teacher;
this.topics = new LinkedList<string>();
}
示例15: LocalCourses
public LocalCourses(string name, ITeacher teacher, string lab)
: base(name, teacher)
{
this.Lab = lab;
}