public static IEnumerable <string> GetArchivesConnectionStrings(NjitSoftware.Model.Common.ArchiveGroupTab archiveGroupTab)
        {
            List <string> archives = new List <string>();

            AddArchivesToList(archiveGroupTab.ArchiveGroup, archives);

            List <string> list = new List <string>();

            foreach (var item in archives)
            {
                list.Add(Setting.Sql.ThisProgram.GetDatabaseConnection(item).ConnectionString);
            }
            return(list);
        }
        public static List <NjitSoftware.Model.Archive.ArchiveDataClassesDataContext> GetArchivesConnections(NjitSoftware.Model.Common.ArchiveGroupTab archiveGroupTab)
        {
            List <string> archives = new List <string>();

            AddArchivesToList(archiveGroupTab.ArchiveGroup, archives);

            List <NjitSoftware.Model.Archive.ArchiveDataClassesDataContext> list = new List <NjitSoftware.Model.Archive.ArchiveDataClassesDataContext>();

            foreach (var item in archives)
            {
                System.Data.SqlClient.SqlConnectionStringBuilder csb = Setting.Sql.ThisProgram.GetDatabaseConnection(item);
                list.Add(new NjitSoftware.Model.Archive.ArchiveDataClassesDataContext(csb.ConnectionString));
            }
            return(list);
        }