Beispiel #1
0
        private void loadTree(TreeListView treelistview, XElement DatabaseElement)
        {
            BL.ResourceDescription ResourceDesc = new BL.ResourceDescription(DatabaseElement);
            Node nodeFolder, nodeMapping;

            foreach (BL.ResourceTable table in ResourceDesc.ResourceTables)
            {
                nodeFolder         = new Node(table.Name);
                nodeFolder.ImageId = 1;
                foreach (BL.ResourceMap map in table.ResourceMaps)
                {
                    nodeMapping         = new Node(new object[] { map.From, map.FromType, map.To, map.ToType });
                    nodeMapping.ImageId = 0;
                    nodeFolder.Nodes.Add(nodeMapping);
                }
                treelistview.Nodes.Add(nodeFolder);
            }
        }
Beispiel #2
0
 private void cmbMappings_SelectedIndexChanged(object sender, EventArgs e)
 {
     BL.DatabaseMap         databaseMap  = new BL.DatabaseMap();
     BL.ResourceDescription ResourceDesc = new BL.ResourceDescription(databaseMap.DatabaseMaps[cmbMappings.SelectedIndex]);
     txtRDFPath.Text = ResourceDesc.OWLResource.Path;
 }