public SnapLayerRow(SnapLayer sLayer)
            {
                _sLayer = sLayer;
                if (_sLayer == null)
                {
                    return;
                }

                DataGridViewTextBoxCell cell = new DataGridViewTextBoxCell();

                cell.Value = _sLayer.FeatureLayer.Title;
                this.Cells.Add(cell);

                DataGridViewCheckBoxCell c = new DataGridViewCheckBoxCell();

                c.Value = Bit.Has(_sLayer.Methode, SnapMethode.Vertex);
                this.Cells.Add(c);

                c       = new DataGridViewCheckBoxCell();
                c.Value = Bit.Has(_sLayer.Methode, SnapMethode.Edge);
                this.Cells.Add(c);

                c       = new DataGridViewCheckBoxCell();
                c.Value = Bit.Has(_sLayer.Methode, SnapMethode.EndPoint);
                this.Cells.Add(c);
            }
            public SnapSchemaItem(IMap map, ISnapSchema schema)
            {
                _schema = schema;
                if (_schema == null)
                {
                    return;
                }

                foreach (ISnapLayer sLayer in schema)
                {
                    if (!(sLayer is SnapLayer))
                    {
                        continue;
                    }
                    _rows.Add(new SnapLayerRow(sLayer as SnapLayer));
                }
                foreach (IDatasetElement element in map.MapElements)
                {
                    if (!(element is IFeatureLayer) ||
                        HasFeatureLayer(element as IFeatureLayer))
                    {
                        continue;
                    }

                    SnapLayer sLayer = new SnapLayer(element as IFeatureLayer, SnapMethode.None);
                    _rows.Add(new SnapLayerRow(sLayer));
                }
            }