RealtimeAnalysis.FormPRM.GetAllHigherPriorityTasks C# (CSharp) Method

GetAllHigherPriorityTasks() private method

private GetAllHigherPriorityTasks ( DataTable dt, int priority ) : List
dt System.Data.DataTable
priority int
return List
        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)