コード例 #1
0
        private void FillSDMXArtefacts()
        {
            _sdmxArtefacts = new SdmxObjectsImpl();

            ISdmxObjects sdmxAppo = new SdmxObjectsImpl();

            if (chkCodelist.Checked)
            {
                sdmxAppo = _wsModel.GetAllCodeLists(true);
                foreach (ICodelistObject cl in sdmxAppo.Codelists)
                    _sdmxArtefacts.AddCodelist(cl);
            }

            if (chkConcSchema.Checked)
            {
                sdmxAppo = _wsModel.GetAllConceptScheme(true);
                foreach (IConceptSchemeObject cs in sdmxAppo.ConceptSchemes)
                    _sdmxArtefacts.AddConceptScheme(cs);
            }

            if (chkDataflow.Checked)
            {
                sdmxAppo = _wsModel.GetAllDataFlow(true);
                foreach (IDataflowObject df in sdmxAppo.Dataflows)
                    _sdmxArtefacts.AddDataflow(df);
            }

            if (chkDSD.Checked)
            {
                sdmxAppo = _wsModel.GetAllDataStructure(true);
                foreach (IDataStructureObject dsd in sdmxAppo.DataStructures)
                    _sdmxArtefacts.AddDataStructure(dsd);
            }
        }