Ejemplo n.º 1
0
        private void toolStripMenuItem4_Click(object sender, EventArgs e)
        {
            TreeNode tn = treeView1.SelectedNode;

            if (tn == null)
            {
                return;
            }

            string layerID = Convert.ToString(tn.Tag);

            if (tn.Parent.Tag != null && tn.Parent.Tag.ToString() == "RASTER_LAYERS")
            {
                Demo.Entities.RasterLayer rl = Demo.Entities.RasterLayer.GetRasterIndexById(layerID);
                if (rl == null)
                {
                    return;
                }
                FormMetaData fmd = new FormMetaData(rl);
                fmd.ShowDialog();
            }
            else if (tn.Parent.Tag != null && tn.Parent.Tag.ToString() == "VECTOR_LAYERS")
            {
                VectorLayer vl = VectorLayer.GetVectorIndexById(layerID);
                if (vl == null)
                {
                    return;
                }
                FormMetaData fmd = new FormMetaData(vl);
                fmd.ShowDialog();
            }
        }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     Demo.Entities.RasterLayer rl = Demo.Entities.RasterLayer.GetRasterIndexById("");
     if (rl != null)
     {
         FormMetaData fmd = new FormMetaData(rl);
         fmd.ShowDialog();
     }
 }
Ejemplo n.º 3
0
        private void button2_Click(object sender, EventArgs e)
        {
            VectorLayer vl = VectorLayer.GetVectorIndexById("");

            if (vl != null)
            {
                FormMetaData fmd = new FormMetaData(vl);
                fmd.ShowDialog();
            }
        }