public Course(string code, string name, int year, Season season) { Code = code; Name = name; Semester = new Semester(year, season); }
public Course(DataGridViewRow row) { Code = (string)row.Cells["codeDataGridViewTextBoxColumn"].Value; Name = (string)row.Cells["nameDataGridViewTextBoxColumn"].Value; Semester = (Semester)row.Cells["semesterDataGridViewTextBoxColumn"].Value; }
public Course(string code, string name, Semester semester) { Code = code; Name = name; Semester = semester; }