コード例 #1
0
 /// <summary>
 /// Copies the values from the data model into the SettlementUnitItem instance.
 /// </summary>
 /// <param name="settlementUnitRow">The source of the data.</param>
 internal void Copy(DataModel.SettlementUnitRow settlementUnitRow)
 {
     // Copy the members from the data model.  This will also notify anyone listening for the change.
     this.Name = settlementUnitRow.Name;
     this.SettlementUnitCode = settlementUnitRow.SettlementUnitCode;
 }
コード例 #2
0
 /// <summary>
 /// Initialize a new instance of a SettlementUnitItem class with the information from the data model.
 /// </summary>
 /// <param name="settlementUnitRow">The source of the information for the SettlementUnitRow.</param>
 internal SettlementUnitItem(DataModel.SettlementUnitRow settlementUnitRow)
 {
     // This will populate the new item with information from the data model.
     this.Copy(settlementUnitRow);
 }