/// <summary> /// Copies the values from the data model into the TimeUnitItem instance. /// </summary> /// <param name="timeUnitRow">The source of the data.</param> internal void Copy(DataModel.TimeUnitRow timeUnitRow) { // Copy the members from the data model. this.Name = timeUnitRow.Name; this.TimeUnitCode = timeUnitRow.TimeUnitCode; }
/// <summary> /// Initialize a new instance of a TimeUnitItem class with the information from the data model. /// </summary> /// <param name="timeUnitRow">The source of the information for the TimeUnitRow.</param> internal TimeUnitItem(DataModel.TimeUnitRow timeUnitRow) { // This will populate the new item with information from the data model. this.Copy(timeUnitRow); }