public void UpdateFromRow (ActivityDataRow p_row)
{
Dictionary<ActivityDataRow.DataType, double> data = (Dictionary<ActivityDataRow.DataType, double>)p_row.data;
this.Sport_ID = (uint)p_row.mode;
this.ActivitySteps = (uint)data[ActivityDataRow.DataType.DATA_COL_STEP];
this.ActivityDistance = (uint)data[ActivityDataRow.DataType.DATA_COL_DIST];
this.ActivityCalories = (uint)data[ActivityDataRow.DataType.DATA_COL_CALS];
this.ActivityHeart = (uint)data[ActivityDataRow.DataType.DATA_COL_HR];
//~~~update time
DateTime today = KreyosUtils.NowWith(p_row.hour, p_row.minute);
this.CreatedTime = KreyosUtils.EpochFrom(today);
this.CreatedDate = KreyosUtils.DateStringWithYear(today);
}