private void InitClass() {
     this.DataSetName = "TDSettings";
     this.Prefix = "";
     this.Namespace = "http://tempuri.org/TDSettings.xsd";
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableConnectionType = new ConnectionTypeDataTable();
     base.Tables.Add(this.tableConnectionType);
     this.tableConnection = new ConnectionDataTable();
     base.Tables.Add(this.tableConnection);
     this.tableGlobalSettings = new GlobalSettingsDataTable();
     base.Tables.Add(this.tableGlobalSettings);
     this.tablePreferences = new PreferencesDataTable();
     base.Tables.Add(this.tablePreferences);
     this.tableColumns = new ColumnsDataTable();
     base.Tables.Add(this.tableColumns);
     global::System.Data.ForeignKeyConstraint fkc;
     fkc = new global::System.Data.ForeignKeyConstraint("FK_Connection_Columns", new global::System.Data.DataColumn[] {
                 this.tableConnection.ConnectionIdColumn}, new global::System.Data.DataColumn[] {
                 this.tableColumns.ConnectionIdColumn});
     this.tableColumns.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     this.relationRel_ConnectionType = new global::System.Data.DataRelation("Rel_ConnectionType", new global::System.Data.DataColumn[] {
                 this.tableConnectionType.NameColumn}, new global::System.Data.DataColumn[] {
                 this.tableConnection.TypeColumn}, false);
     this.Relations.Add(this.relationRel_ConnectionType);
     this.relationRel_Conn = new global::System.Data.DataRelation("Rel_Conn", new global::System.Data.DataColumn[] {
                 this.tableConnection.ConnectionIdColumn}, new global::System.Data.DataColumn[] {
                 this.tablePreferences.ConnectionIdColumn}, false);
     this.Relations.Add(this.relationRel_Conn);
 }
 internal void InitVars(bool initTable) {
     this.tableConnectionType = ((ConnectionTypeDataTable)(base.Tables["ConnectionType"]));
     if ((initTable == true)) {
         if ((this.tableConnectionType != null)) {
             this.tableConnectionType.InitVars();
         }
     }
     this.tableConnection = ((ConnectionDataTable)(base.Tables["Connection"]));
     if ((initTable == true)) {
         if ((this.tableConnection != null)) {
             this.tableConnection.InitVars();
         }
     }
     this.tableGlobalSettings = ((GlobalSettingsDataTable)(base.Tables["GlobalSettings"]));
     if ((initTable == true)) {
         if ((this.tableGlobalSettings != null)) {
             this.tableGlobalSettings.InitVars();
         }
     }
     this.tablePreferences = ((PreferencesDataTable)(base.Tables["Preferences"]));
     if ((initTable == true)) {
         if ((this.tablePreferences != null)) {
             this.tablePreferences.InitVars();
         }
     }
     this.tableColumns = ((ColumnsDataTable)(base.Tables["Columns"]));
     if ((initTable == true)) {
         if ((this.tableColumns != null)) {
             this.tableColumns.InitVars();
         }
     }
     this.relationRel_ConnectionType = this.Relations["Rel_ConnectionType"];
     this.relationRel_Conn = this.Relations["Rel_Conn"];
 }
 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 PreferencesRow(global::System.Data.DataRowBuilder rb) : 
         base(rb) {
     this.tablePreferences = ((PreferencesDataTable)(this.Table));
 }
 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"];
 }