public static List<DataClasses.GrucoxTrunkCustomSession> GetTrunkCustomProgramSessionByUserID(int UserID)
        {
            if (CalibrationSettings.Default.IsInternetConfigured == true && UserID != 0)
            {
                try
                {
                    GrucoxDataClassesRemoteDBDataContext dc = new GrucoxDataClassesRemoteDBDataContext();
                    var CustomProgramSessions = (from sessions in dc.GetTable<GrucoxTrunkCustomSession>()
                                                 where sessions.UserId == UserID
                                                 select sessions).ToList<GrucoxTrunkCustomSession>();

                    return CustomProgramSessions;
                }
                catch (Exception)
                {
                    frmMessageDialog.DisplayBriefMessage("Failed to retrieve Trunk Custom Program Sessions");
                    return new List<GrucoxTrunkCustomSession>();
                }
            }
            else
            {
                //Not yet implemented
                return new List<GrucoxTrunkCustomSession>();
            }
        }
        public static List<DataClasses.CustomProgram> GetCustomProgramSessionsByUserID(int UserID)
        {
            if (CalibrationSettings.Default.IsInternetConfigured == true && UserID != 0)
            {
                GrucoxDataClassesRemoteDBDataContext dc = new GrucoxDataClassesRemoteDBDataContext();
                var CustomProgramSessions = (from sessions in dc.GetTable<GrucoxCustomProgramSession>()
                                            where sessions.LiveUserID == UserID
                                            select sessions).ToList<GrucoxCustomProgramSession>();

                List<DataClasses.CustomProgram> custProgramList = new List<CustomProgram>();
                foreach (var session in CustomProgramSessions)
                {
                    custProgramList.Add(session.ToCustomProgram());
                }
                return custProgramList;
            }
            else
            {
                DataClasses.GrucoxDataClassDataContext dc = new DataClasses.GrucoxDataClassDataContext();

                return (from sessions in dc.GetTable<DataClasses.CustomProgram>()
                        where sessions.UserID == UserID
                        select sessions).ToList<DataClasses.CustomProgram>();
            }
        }