public PRC[] GetPrcArray(DataTable table) { try { var rows = table.AsEnumerable().Select(p => p).ToArray(); var prc = new PRC[rows.Length]; for (int i = 0; i < rows.Length; i++) { prc[i] = new PRC(rows[i]); } return(prc); } catch (Exception ex) { new Error(ex).ShowDialog(); return(null); } }
/// <summary> /// The GetValue /// </summary> /// <param name="prc">The prc<see cref="PRC"/></param> /// <returns>The <see cref="decimal"/></returns> public decimal GetValue(PRC prc) { return(prc.Amount); }