public void LoadFromResources(string localPath) { Dictionary <string, ARDataSet> DataSetList = new Dictionary <string, ARDataSet>(); TextAsset[] ARDatas = Resources.LoadAll <TextAsset>(localPath); ARDataSets = new List <ARDataSet>(); foreach (TextAsset tAsset in ARDatas) { string key = tAsset.name.Replace("_xml", "").Replace("_dat", ""); if (!DataSetList.ContainsKey(key)) { ARDataSet data = new ARDataSet(); DataSetList.Add(key, data.SingleLoadFromResources(localPath, key) ); } } ARDataSets = new List <ARDataSet>(DataSetList.Values); }
/// <summary> /// Creates an EduHubContextBase /// </summary> /// <param name="EduHubDirectory">Directory which contains the eduHub CSV Data Sets</param> /// <param name="EduHubSiteIdentifier">Data Set Suffix for each CSV file</param> /// <exception cref="ArgumentException">eduHub Directory does not exist, has no valid data sets or contains multiple data sets</exception> public EduHubContext(string EduHubDirectory, string EduHubSiteIdentifier) { // Use default directory if none provided if (string.IsNullOrWhiteSpace(EduHubDirectory)) { EduHubDirectory = DefaultEduHubDirectory; } // Use default identifier if none provided if (string.IsNullOrWhiteSpace(EduHubSiteIdentifier)) { if (DefaultEduHubSiteIdentifier == null) { DefaultEduHubSiteIdentifier = GetSiteIdentifier(EduHubDirectory); } EduHubSiteIdentifier = DefaultEduHubSiteIdentifier; } // Ensure directory exists if (!Directory.Exists(EduHubDirectory)) throw new ArgumentException($"EduHub Directory [{EduHubDirectory}] does not exist"); this.EduHubDirectory = EduHubDirectory; this.EduHubSiteIdentifier = EduHubSiteIdentifier; _A_DECRYP = new A_DECRYPDataSet(this); _AKB = new AKBDataSet(this); _AKC = new AKCDataSet(this); _AKCT = new AKCTDataSet(this); _AKD = new AKDDataSet(this); _AKK = new AKKDataSet(this); _AKL = new AKLDataSet(this); _AKR = new AKRDataSet(this); _AKT = new AKTDataSet(this); _AR = new ARDataSet(this); _ARF = new ARFDataSet(this); _BKH = new BKHDataSet(this); _BKHR = new BKHRDataSet(this); _BPAY_DAT = new BPAY_DATDataSet(this); _CR = new CRDataSet(this); _CRF = new CRFDataSet(this); _CRFTC = new CRFTCDataSet(this); _DF = new DFDataSet(this); _DF_TFR = new DF_TFRDataSet(this); _DFB = new DFBDataSet(this); _DFF = new DFFDataSet(this); _DFHI = new DFHIDataSet(this); _DFVT = new DFVTDataSet(this); _DR = new DRDataSet(this); _DRB = new DRBDataSet(this); _DRF = new DRFDataSet(this); _FDT_EXP = new FDT_EXPDataSet(this); _FDT_IMP = new FDT_IMPDataSet(this); _FER_FDT = new FER_FDTDataSet(this); _FINHIST = new FINHISTDataSet(this); _GL = new GLDataSet(this); _GLBANK = new GLBANKDataSet(this); _GLBUDG = new GLBUDGDataSet(this); _GLCF = new GLCFDataSet(this); _GLCFPREV = new GLCFPREVDataSet(this); _GLF = new GLFDataSet(this); _GLFBANK = new GLFBANKDataSet(this); _GLFBUDG = new GLFBUDGDataSet(this); _GLFPREV = new GLFPREVDataSet(this); _GLPREV = new GLPREVDataSet(this); _KAB = new KABDataSet(this); _KAD = new KADDataSet(this); _KADM = new KADMDataSet(this); _KAM = new KAMDataSet(this); _KAP = new KAPDataSet(this); _KBANK = new KBANKDataSet(this); _KBP = new KBPDataSet(this); _KBPT = new KBPTDataSet(this); _KCB = new KCBDataSet(this); _KCC = new KCCDataSet(this); _KCD = new KCDDataSet(this); _KCD_TFR = new KCD_TFRDataSet(this); _KCI = new KCIDataSet(this); _KCM = new KCMDataSet(this); _KCM_TFR = new KCM_TFRDataSet(this); _KCOHORT = new KCOHORTDataSet(this); _KCR = new KCRDataSet(this); _KCT = new KCTDataSet(this); _KCV = new KCVDataSet(this); _KCY = new KCYDataSet(this); _KDELETE = new KDELETEDataSet(this); _KDI = new KDIDataSet(this); _KDO = new KDODataSet(this); _KEMA = new KEMADataSet(this); _KERROR = new KERRORDataSet(this); _KFTC = new KFTCDataSet(this); _KGC = new KGCDataSet(this); _KGCHI = new KGCHIDataSet(this); _KGD = new KGDDataSet(this); _KGG = new KGGDataSet(this); _KGH = new KGHDataSet(this); _KGL = new KGLDataSet(this); _KGLINIT = new KGLINITDataSet(this); _KGLPROG = new KGLPROGDataSet(this); _KGLSUB = new KGLSUBDataSet(this); _KGLT = new KGLTDataSet(this); _KGR = new KGRDataSet(this); _KGST = new KGSTDataSet(this); _KGT = new KGTDataSet(this); _KGW = new KGWDataSet(this); _KLOG = new KLOGDataSet(this); _KN = new KNDataSet(this); _KNFS = new KNFSDataSet(this); _KPC = new KPCDataSet(this); _KPCL = new KPCLDataSet(this); _KPCR = new KPCRDataSet(this); _KPEC = new KPECDataSet(this); _KPN = new KPNDataSet(this); _KPRMS = new KPRMSDataSet(this); _KREPORT = new KREPORTDataSet(this); _KROLE = new KROLEDataSet(this); _KSA = new KSADataSet(this); _KSC = new KSCDataSet(this); _KSF = new KSFDataSet(this); _KSQ = new KSQDataSet(this); _KTIE = new KTIEDataSet(this); _KTM = new KTMDataSet(this); _KTRCMP = new KTRCMPDataSet(this); _OSCS = new OSCSDataSet(this); _PC = new PCDataSet(this); _PD = new PDDataSet(this); _PE = new PEDataSet(this); _PEF = new PEFDataSet(this); _PEFH = new PEFHDataSet(this); _PELA = new PELADataSet(this); _PELD = new PELDDataSet(this); _PEM = new PEMDataSet(this); _PEPM = new PEPMDataSet(this); _PEPS = new PEPSDataSet(this); _PEPU = new PEPUDataSet(this); _PEPUH = new PEPUHDataSet(this); _PEPY = new PEPYDataSet(this); _PESH = new PESHDataSet(this); _PESP = new PESPDataSet(this); _PETP = new PETPDataSet(this); _PF = new PFDataSet(this); _PG = new PGDataSet(this); _PI = new PIDataSet(this); _PILI = new PILIDataSet(this); _PLC = new PLCDataSet(this); _PLG = new PLGDataSet(this); _PLT = new PLTDataSet(this); _PML = new PMLDataSet(this); _PML_NEW = new PML_NEWDataSet(this); _PN = new PNDataSet(this); _PPD = new PPDDataSet(this); _PPS = new PPSDataSet(this); _PS = new PSDataSet(this); _PSA = new PSADataSet(this); _PSF = new PSFDataSet(this); _PX = new PXDataSet(this); _PX_NEW = new PX_NEWDataSet(this); _QB = new QBDataSet(this); _QS = new QSDataSet(this); _SA = new SADataSet(this); _SAB = new SABDataSet(this); _SABT = new SABTDataSet(this); _SACAG = new SACAGDataSet(this); _SAD = new SADDataSet(this); _SADAG = new SADAGDataSet(this); _SADP = new SADPDataSet(this); _SADW = new SADWDataSet(this); _SAI = new SAIDataSet(this); _SAII = new SAIIDataSet(this); _SAIM = new SAIMDataSet(this); _SAM = new SAMDataSet(this); _SAMA = new SAMADataSet(this); _SAP = new SAPDataSet(this); _SC = new SCDataSet(this); _SCA = new SCADataSet(this); _SCAM = new SCAMDataSet(this); _SCEN_ACL = new SCEN_ACLDataSet(this); _SCEN_ACV = new SCEN_ACVDataSet(this); _SCEN_APP = new SCEN_APPDataSet(this); _SCEN_ASE = new SCEN_ASEDataSet(this); _SCEN_AST = new SCEN_ASTDataSet(this); _SCEN_ASV = new SCEN_ASVDataSet(this); _SCEN_CL = new SCEN_CLDataSet(this); _SCEN_CLV = new SCEN_CLVDataSet(this); _SCEN_CVT = new SCEN_CVTDataSet(this); _SCEN_RFD = new SCEN_RFDDataSet(this); _SCEN_RPT = new SCEN_RPTDataSet(this); _SCEN_RTN = new SCEN_RTNDataSet(this); _SCEN_SCD = new SCEN_SCDDataSet(this); _SCEN_ST = new SCEN_STDataSet(this); _SCEN_STE = new SCEN_STEDataSet(this); _SCEN_STV = new SCEN_STVDataSet(this); _SCEN_SVT = new SCEN_SVTDataSet(this); _SCI = new SCIDataSet(this); _SCL = new SCLDataSet(this); _SCSF = new SCSFDataSet(this); _SCSFAG = new SCSFAGDataSet(this); _SDFC = new SDFCDataSet(this); _SDG = new SDGDataSet(this); _SDGM = new SDGMDataSet(this); _SDP = new SDPDataSet(this); _SDPA = new SDPADataSet(this); _SEC_ELOG = new SEC_ELOGDataSet(this); _SEC_LLOG = new SEC_LLOGDataSet(this); _SEC_MSG = new SEC_MSGDataSet(this); _SEC_URL = new SEC_URLDataSet(this); _SEC_USR = new SEC_USRDataSet(this); _SF = new SFDataSet(this); _SFAQ = new SFAQDataSet(this); _SFAV = new SFAVDataSet(this); _SFQA = new SFQADataSet(this); _SG = new SGDataSet(this); _SGAM = new SGAMDataSet(this); _SGHG = new SGHGDataSet(this); _SGM = new SGMDataSet(this); _SGMA = new SGMADataSet(this); _SGSC = new SGSCDataSet(this); _SGSG = new SGSGDataSet(this); _SGTRX = new SGTRXDataSet(this); _SID = new SIDDataSet(this); _SIDV = new SIDVDataSet(this); _SIRH = new SIRHDataSet(this); _SK_HRMS = new SK_HRMSDataSet(this); _SK_HRMST = new SK_HRMSTDataSet(this); _SKGS = new SKGSDataSet(this); _SM = new SMDataSet(this); _SMAQ = new SMAQDataSet(this); _SMAV = new SMAVDataSet(this); _SMC = new SMCDataSet(this); _SMC_TFR = new SMC_TFRDataSet(this); _SMCD = new SMCDDataSet(this); _SMGROUP = new SMGROUPDataSet(this); _SPEMAIL = new SPEMAILDataSet(this); _SPEPRINT = new SPEPRINTDataSet(this); _SPOUT = new SPOUTDataSet(this); _SPRECIP = new SPRECIPDataSet(this); _SPREPLY = new SPREPLYDataSet(this); _SPSMS = new SPSMSDataSet(this); _SPU = new SPUDataSet(this); _SRAG = new SRAGDataSet(this); _SS = new SSDataSet(this); _SSHG = new SSHGDataSet(this); _ST = new STDataSet(this); _ST_TFR = new ST_TFRDataSet(this); _ST_TFRIO = new ST_TFRIODataSet(this); _STBT = new STBTDataSet(this); _STMA = new STMADataSet(this); _STMB = new STMBDataSet(this); _STPO = new STPODataSet(this); _STPT = new STPTDataSet(this); _STRA = new STRADataSet(this); _STRE = new STREDataSet(this); _STSB = new STSBDataSet(this); _STSP = new STSPDataSet(this); _STTRIPS = new STTRIPSDataSet(this); _STVDI = new STVDIDataSet(this); _STVDO = new STVDODataSet(this); _SU = new SUDataSet(this); _SUBL = new SUBLDataSet(this); _SUPR = new SUPRDataSet(this); _SVAG = new SVAGDataSet(this); _SXAB = new SXABDataSet(this); _SXABCONV = new SXABCONVDataSet(this); _SXAS = new SXASDataSet(this); _SXHI = new SXHIDataSet(this); _TC = new TCDataSet(this); _TCAT = new TCATDataSet(this); _TCTB = new TCTBDataSet(this); _TCTD = new TCTDDataSet(this); _TCTQ = new TCTQDataSet(this); _TCTR = new TCTRDataSet(this); _TE = new TEDataSet(this); _TEC = new TECDataSet(this); _TETE = new TETEDataSet(this); _TETN = new TETNDataSet(this); _TH = new THDataSet(this); _THTN = new THTNDataSet(this); _THTQ = new THTQDataSet(this); _TRPMODE = new TRPMODEDataSet(this); _TRPROUT = new TRPROUTDataSet(this); _TRSTACC = new TRSTACCDataSet(this); _TT = new TTDataSet(this); _TTEF = new TTEFDataSet(this); _TTEI = new TTEIDataSet(this); _TTEP = new TTEPDataSet(this); _TTES = new TTESDataSet(this); _TTEX = new TTEXDataSet(this); _TTTG = new TTTGDataSet(this); _TXAS = new TXASDataSet(this); _TXHG = new TXHGDataSet(this); _UM = new UMDataSet(this); _UM_TFR = new UM_TFRDataSet(this); seamlessViews = new SeamlessViewsContext(this); }