private List<DataRow> GetAllHigherPriorityTasks(DataTable dt, int priority)
{
List<DataRow> listDataRow = new List<DataRow>();
foreach (DataRow dr in dt.Rows)
{
// Priority value lower has higher priority
if (int.Parse(dr["Priority"].ToString()) < priority)
listDataRow.Add(dr);
}
return listDataRow;
}
private DataRow GetOneHigherPriorityWorkload(DataTable dt, int priority)