public ClassDetails(int id, int group, ClassType type, BasicClass bclass, EducationForm educationform) { this.mID = id; this.mGroup = group; this.mType = type; this.mBClass = bclass; this.mEducationForm = educationform; //this.mDetailed = detailed; }
private void ImportEducationForms(ref OleDbConnection connection) { string EducationFormsSelect = "SELECT [EdForm ID] AS ID, [EdForm Name] AS Name, [EdFormSN] AS ShortName " + "FROM [Code EdForm]"; OleDbCommand command = new OleDbCommand(EducationFormsSelect, connection); using (OleDbDataReader dataReader = command.ExecuteReader()) { while (dataReader.Read()) { EducationForm form = new EducationForm( int.Parse(dataReader["ID"].ToString()), dataReader["Name"].ToString(), dataReader["ShortName"].ToString()); this.mEducationForms.Add(form); } } }
public ClassDetails(int id, int group, ClassType type, BasicClass bclass, EducationForm educationform, Class detailed) : this(id, group, type, bclass, educationform) { this.SetDetailed(detailed); }