示例#1
0
        private void InitInfoTextBox()
        {
            var data = VectorInfoHelper.GetFeatureSetInfo(_featureSet);

            foreach (var item in data.SubItems)
            {
                item.Category = data.Name;
            }

            var data2 = VectorInfoHelper.GetVectorLayerInfo(Model.VectorSource);

            if (data2.SubItems.Any())
            {
                foreach (var item in data2.SubItems)
                {
                    item.Category = data2.Name;
                }
            }

            var list = data.SubItems.ToList();

            list.AddRange(data2.SubItems);

            infoGrid1.DataSource = list;
        }
示例#2
0
        private void btnCopyInfo_Click(object sender, EventArgs e)
        {
            var temp  = new NodeData("Layer info");
            var data  = VectorInfoHelper.GetFeatureSetInfo(_featureSet);
            var data2 = VectorInfoHelper.GetVectorLayerInfo(Model.VectorSource);

            temp.AddSubItem(data);
            temp.AddSubItem(data2);
            string s = temp.Serialize();

            ClipboardHelper.SetText(s);
        }
示例#3
0
        public void Initialize(ILayer layer)
        {
            CreateColumns();

            if (layer == null)
            {
                return;
            }

            Nodes.Clear();

            var root = VectorInfoHelper.GetFeatureSetInfo(layer.FeatureSet);

            var ogr = VectorInfoHelper.GetVectorLayerInfo(layer.VectorSource);

            root.AddSubItem(ogr);

            var node = AddSubItems(Nodes, root);

            node.ExpandAll();
        }