예제 #1
0
        public void fillDatasetList()
        {
            using (DatasetManager dm = new DatasetManager())
            {
                DatasetListElement datasetListElement = new DatasetListElement();
                datasets = new List <DatasetListElement>();

                XmlDatasetHelper xmlDatasetHelper = new XmlDatasetHelper();


                foreach (var item in dm.GetDatasetLatestVersions(dataStructure.Id, true))
                {
                    datasetListElement = new DatasetListElement(item.Key, item.Value.Title);
                    datasets.Add(datasetListElement);
                }
            }
        }
예제 #2
0
        public void fillDatasetList()
        {
            DatasetListElement datasetListElement = new DatasetListElement();
            DatasetManager     dm = null;

            datasets = new List <DatasetListElement>();

            try
            {
                dm = new DatasetManager();
                XmlDatasetHelper xmlDatasetHelper = new XmlDatasetHelper();


                foreach (var item in dm.GetDatasetLatestVersions(dataStructure.Id, true))
                {
                    datasetListElement = new DatasetListElement(item.Key, xmlDatasetHelper.GetInformation(item.Value.Id, NameAttributeValues.title));
                    datasets.Add(datasetListElement);
                }
            }
            finally
            {
                dm.Dispose();
            }
        }