internal void InitVars(bool initTable) {
     this.tableCourses = ((CoursesDataTable)(base.Tables["Courses"]));
     if ((initTable == true)) {
         if ((this.tableCourses != null)) {
             this.tableCourses.InitVars();
         }
     }
     this.tablePreferences = ((PreferencesDataTable)(base.Tables["Preferences"]));
     if ((initTable == true)) {
         if ((this.tablePreferences != null)) {
             this.tablePreferences.InitVars();
         }
     }
     this.tableProfs = ((ProfsDataTable)(base.Tables["Profs"]));
     if ((initTable == true)) {
         if ((this.tableProfs != null)) {
             this.tableProfs.InitVars();
         }
     }
     this.tableSolution = ((SolutionDataTable)(base.Tables["Solution"]));
     if ((initTable == true)) {
         if ((this.tableSolution != null)) {
             this.tableSolution.InitVars();
         }
     }
     this.relationFK_Preferences_Courses = this.Relations["FK_Preferences_Courses"];
     this.relationFK_Courses_Profs = this.Relations["FK_Courses_Profs"];
     this.relationFK_Preferences_Profs = this.Relations["FK_Preferences_Profs"];
 }
 private void InitClass() {
     this.DataSetName = "Database";
     this.Prefix = "";
     this.Namespace = "http://tempuri.org/Database.xsd";
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableCourses = new CoursesDataTable();
     base.Tables.Add(this.tableCourses);
     this.tablePreferences = new PreferencesDataTable();
     base.Tables.Add(this.tablePreferences);
     this.tableProfs = new ProfsDataTable();
     base.Tables.Add(this.tableProfs);
     this.tableSolution = new SolutionDataTable();
     base.Tables.Add(this.tableSolution);
     this.relationFK_Preferences_Courses = new global::System.Data.DataRelation("FK_Preferences_Courses", new global::System.Data.DataColumn[] {
                 this.tableCourses.CourseIDColumn}, new global::System.Data.DataColumn[] {
                 this.tablePreferences.CourseIDColumn}, false);
     this.Relations.Add(this.relationFK_Preferences_Courses);
     this.relationFK_Courses_Profs = new global::System.Data.DataRelation("FK_Courses_Profs", new global::System.Data.DataColumn[] {
                 this.tableProfs.ProfIDColumn}, new global::System.Data.DataColumn[] {
                 this.tableCourses.ProfIDColumn}, false);
     this.Relations.Add(this.relationFK_Courses_Profs);
     this.relationFK_Preferences_Profs = new global::System.Data.DataRelation("FK_Preferences_Profs", new global::System.Data.DataColumn[] {
                 this.tableProfs.ProfIDColumn}, new global::System.Data.DataColumn[] {
                 this.tablePreferences.ProfIDColumn}, false);
     this.Relations.Add(this.relationFK_Preferences_Profs);
 }
 internal SolutionRow(global::System.Data.DataRowBuilder rb) : 
         base(rb) {
     this.tableSolution = ((SolutionDataTable)(this.Table));
 }