/// <summary> /// /// </summary> /// <param name="row"></param> /// <returns></returns> private GRAlarmData CreateGRAlarmData(DataRow row) { GRAlarmData a = new GRAlarmData( Convert.ToDateTime(row["DT"]), row[DataColumnNames.StationName].ToString(), row["Content"].ToString()); return a; }
/// <summary> /// /// </summary> /// <param name="grad"></param> /// <returns></returns> private string GetGRAlarmDataText(GRAlarmData grad) { string s = string.Format("{0} {1}", grad.DT, grad.Content); return s; }