public Group(FacultyType f, int year, string speciality) { faculty = f; Tuple<int, string> t = new Tuple<int, string>(year, speciality); if (!existingGroupsCount.ContainsKey(t)) { existingGroupsCount[t] = 0; } existingGroupsCount[t]++; id = string.Format("{0}-{1}-{2}", speciality, string.Format("{0}{1}", (year % 100) > 9 ? "0" : "", year % 100), existingGroupsCount[t]); id = string.Format("{0}-{1}-{2}", Shifr(speciality), string.Format("{0}{1}", (year % 100) <=9 ? "0" : "", year % 100), existingGroupsCount[t]); students = new List<Student>(); }
public Group(FacultyType faculty, SpecialityTitle speciality, int year) { this.faculty = faculty; this.speciality = speciality; this.year = year; foreach (var ec in existingGroupsCount.Keys) { if (Title != ec) count = 1; else count++; } existingGroupsCount.Add(Title, count); }
public Student(string firstName, string middleName, string lastName, string ssn, string address, string phoneNumber, string email, string course, SpecialityType speciality, UniversityType university, FacultyType faculty) { this.FirstName = firstName; this.MiddleName = middleName; this.LastName = lastName; this.SSN = ssn; this.permanenetAddress = address; this.PhoneNumber = phoneNumber; this.Email = email; this.Course = course; this.University = university; this.Speciality = speciality; this.Faculty = faculty; }
public Student(string firstName, string middleName, string lastName, string ssn, string address = null, string mobile = null, string email = null, int course = 0, UniversityType university = UniversityType.Other, FacultyType faculty = FacultyType.Other, SpecialtyType specialty = SpecialtyType.Other) { this.FirstName = firstName; this.MiddleName = middleName; this.LastName = lastName; this.Ssn = ssn; this.Address = address; this.Mobile = mobile; this.Email = email; this.Course = course; this.University = university; this.Faculty = faculty; this.Specialty = specialty; }
public Group(FacultyType faculty, SpecialityTitle speciality, int year) { this.faculty = faculty; this.speciality = speciality; this.year = year; foreach (var ec in existingGroupsCount.Keys) { if (Title != ec) { count = 1; } else { count++; } } existingGroupsCount.Add(Title, count); }
public static Faculty GetFacultyInstance(FacultyType facultyType) { switch (facultyType) { case FacultyType.Professor: { return(new Professor()); } case FacultyType.Lecturer: { return(new Lecturer()); } case FacultyType.Scientist: { return(new Scientist()); } } return(null); }
public Student(string firstName, string middleName, string lastName, int ssn, string permanentAddress, int mobilePhone, string eMail, int course, SpecialtyType specialty, UniversityType university, FacultyType faculty) { this.FirstName = firstName; this.MiddleName = middleName; this.LastName = lastName; this.SSN = ssn; this.PermanentAddress = permanentAddress; this.MobilePhone = mobilePhone; this.EMail = eMail; this.Course = course; this.Specialty = specialty; this.University = university; this.Faculty = faculty; }
public Student(string firstName, string middleName, string lastName, int course, string ssn, string address, string phoneNumber, string emailAddress, SpecialtyType specialty, UniversityType university, FacultyType faculty) { this.FirstName = firstName; this.MiddleName = middleName; this.LastName = lastName; this.Course = course; this.SSN = ssn; this.Address = address; this.PhoneNumber = phoneNumber; this.EmailAddress = emailAddress; this.Specialty = specialty; this.University = university; this.Faculty = faculty; }
//constructor public Student(string firstName, string middleName, string lastName, string permanentAddress, string mobilePhone, string email, string course, SpecialityType speciality, UniversityType university, FacultyType faculty) { FirstName = firstName; MiddleName = middleName; LastName = lastName; PermanentAddress = permanentAddress; MobilePhone = mobilePhone; Email = email; Course = course; Speciality = speciality; University = university; Faculty = faculty; }
//Constructori public Student(string firstName, string middleName, string lastName, string ssn, string permanentAdress, string phoneNumber, string email, SpecialityType speciality, UniversityName university, FacultyType faculty) { this.firstName = firstName; this.middleName = middleName; this.lastName = lastName; this.ssn = ssn; this.permanentAdress = permanentAdress; this.phoneNumber = phoneNumber; this.email = email; this.speciality = speciality; this.university = university; this.faculty = faculty; }
public Student(string firstName, string middleName, string lastName, int ssn, string permanentAddress, string mobilePhone, string email, byte course, SpecialityType specialityType, UniversityType universityType, FacultyType facultyType) { this.FirstName = firstName; this.MiddleName = middleName; this.LastName = lastName; this.Ssn = ssn; this.PermanentAddress = permanentAddress; this.MobilePhone = mobilePhone; this.Email = email; this.Course = course; this.SpecialityType = specialityType; this.UniversityType = universityType; this.FacultyType = facultyType; }
public Student(string firstName, string middleName, string lastName, Address addres, UniversityType university, FacultyType faculty, SpecialtyType specialty, CourseType course, int ssn, string email) : this(firstName, middleName, lastName, addres, university, faculty, specialty, course) { this.SSN = ssn; this.Email = email; }
public Student(string firstName, string middleName, string lastName, Address addres, UniversityType university, FacultyType faculty, SpecialtyType specialty, CourseType course) { this.FirstName = firstName; this.MiddleName = middleName; this.LastName = lastName; this.PermanentAddress = addres; this.University = university; this.Faculty = faculty; this.Specialty = specialty; this.Course = course; }