Example #1
0
        // Writen By James Hibbard
        /// <summary>
        ///     Returns a list of all WorkInfo objects the user recorded
        /// </summary>
        /// <param name="Username">The Username of the user to get the Work Info for</param>
        /// <returns>A list of all the work records</returns>
        public List <WorkInfo> getUserWorkInfo(String Username)
        {
            WorkTableAdapter workAdapter = new WorkTableAdapter();

            NuRacingDataSet.WorkDataTable workTable = workAdapter.GetDataByUsername(Username);

            List <WorkInfo> result = new List <WorkInfo>();

            foreach (NuRacingDataSet.WorkRow workRow in workTable.Rows)
            {
                result.Add(new WorkInfo(workRow));
            }

            return(result);
        }
Example #2
0
        // Writen By James Hibbard
        /// <summary>
        ///     Returns a list of all WorkInfo objects the user recorded
        /// </summary>
        /// <param name="Username">The Username of the user to get the Work Info for</param>
        /// <returns>A list of all the work records</returns>
        public List<WorkInfo> getUserWorkInfo(String Username)
        {
            WorkTableAdapter workAdapter = new WorkTableAdapter();
            NuRacingDataSet.WorkDataTable workTable = workAdapter.GetDataByUsername(Username);

            List<WorkInfo> result = new List<WorkInfo>();

            foreach (NuRacingDataSet.WorkRow workRow in workTable.Rows)
            {
                result.Add(new WorkInfo(workRow));
            }

            return result;
        }