/// <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; }
/// <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); }