internal void InitVars(bool initTable) {
     this.tableAsset_Info = ((Asset_InfoDataTable)(base.Tables["Asset Info"]));
     if ((initTable == true)) {
         if ((this.tableAsset_Info != null)) {
             this.tableAsset_Info.InitVars();
         }
     }
     this.tableHistory = ((HistoryDataTable)(base.Tables["History"]));
     if ((initTable == true)) {
         if ((this.tableHistory != null)) {
             this.tableHistory.InitVars();
         }
     }
     this.tableDepreciation_Years = ((Depreciation_YearsDataTable)(base.Tables["Depreciation Years"]));
     if ((initTable == true)) {
         if ((this.tableDepreciation_Years != null)) {
             this.tableDepreciation_Years.InitVars();
         }
     }
     this.relationFK_History_Asset_Info = this.Relations["FK_History_Asset Info"];
     this.relationFK_Asset_Info_History = this.Relations["FK_Asset Info_History"];
 }
 private void InitClass() {
     this.DataSetName = "Database1DataSet";
     this.Prefix = "";
     this.Namespace = "http://tempuri.org/Database1DataSet.xsd";
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableAsset_Info = new Asset_InfoDataTable();
     base.Tables.Add(this.tableAsset_Info);
     this.tableHistory = new HistoryDataTable();
     base.Tables.Add(this.tableHistory);
     this.tableDepreciation_Years = new Depreciation_YearsDataTable();
     base.Tables.Add(this.tableDepreciation_Years);
     global::System.Data.ForeignKeyConstraint fkc;
     fkc = new global::System.Data.ForeignKeyConstraint("FK_History_Asset Info", new global::System.Data.DataColumn[] {
                 this.tableHistory.Asset_IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableAsset_Info.Asset_IDColumn});
     this.tableAsset_Info.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     fkc = new global::System.Data.ForeignKeyConstraint("FK_Asset Info_History", new global::System.Data.DataColumn[] {
                 this.tableAsset_Info.Asset_IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableHistory.Asset_IDColumn});
     this.tableHistory.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.relationFK_History_Asset_Info = new global::System.Data.DataRelation("FK_History_Asset Info", new global::System.Data.DataColumn[] {
                 this.tableHistory.Asset_IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableAsset_Info.Asset_IDColumn}, false);
     this.Relations.Add(this.relationFK_History_Asset_Info);
     this.relationFK_Asset_Info_History = new global::System.Data.DataRelation("FK_Asset Info_History", new global::System.Data.DataColumn[] {
                 this.tableAsset_Info.Asset_IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableHistory.Asset_IDColumn}, false);
     this.Relations.Add(this.relationFK_Asset_Info_History);
 }
 internal Depreciation_YearsRow(global::System.Data.DataRowBuilder rb) : 
         base(rb) {
     this.tableDepreciation_Years = ((Depreciation_YearsDataTable)(this.Table));
 }