Ejemplo n.º 1
0
        public void OnMetaData(object sender, EventArgs e)
        {
            RaveProject proj = (RaveProject)treProject.SelectedNode.Tag;

            MetaData.frmMetaData frm = new MetaData.frmMetaData("Riverscapes Project", proj.MetDataNode);

            //frm.MetaDataItems.Insert(0, new MetaData.MetaDataItem("Project Name", proj.Name));
            //frm.MetaDataItems.Insert(1, new MetaData.MetaDataItem("Project Type", proj.ProjectType));
            frm.MetaDataItems.Insert(2, new MetaData.MetaDataItem("Project File", proj.ProjectFile.FullName));
            frm.ShowDialog();
        }
Ejemplo n.º 2
0
        public void OnGISMetadata(object sender, EventArgs e)
        {
            try
            {
                TreeNode    selNode      = treProject.SelectedNode;
                IGroupLayer parentGrpLyr = BuildArcMapGroupLayers(selNode);
                GISDataset  layer        = (GISDataset)selNode.Tag;

                if (layer.Metadata != null && layer.Metadata.Count > 0)
                {
                    MetaData.frmMetaData frm = new MetaData.frmMetaData(string.Format("{0} Layer", layer.Name), layer.Metadata);
                    frm.ShowDialog();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error Viewing Layer Metadata", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }