private void btnQuery_Click(object sender, EventArgs e)
        {
            using (DefinitonQueryForm form = new DefinitonQueryForm())
            {
                form.ShowDialog();

                Query query = form.getQuery();

                if (query != null)
                {
                    uncheckLayerTreeView();

                    VectorLayer queryLayer = dataManagement.DefinitionQueryFilter(query);
                    mapBox.Map.Layers.Clear();
                    mapBox.Map.BackgroundLayer.Clear();

                    mapBox.Map.Layers.Add(queryLayer);
                    mapBox.Map.ZoomToExtents();

                    if (mapCheckBox.Checked)
                    {
                        mapBox.Map.BackgroundLayer.Add(CreateBackgroundLayer());
                    }

                    mapBox.Refresh();
                    mapBox.Invalidate();

                    FeatureInfoForm fdsForm = new FeatureInfoForm(dataManagement.getFeatureDataSetForLayer(queryLayer));
                }
            };
        }
 private void mapBox_MouseClick(object sender, MouseEventArgs e)
 {
     if (showFeatureInfo)
     {
         FeatureDataSet  fds  = dataManagement.GetFeatureDataSet(mapBox.Map.Layers, mapBox.Map.ImageToWorld(e.Location), mapBox.Map.Zoom / 100.0);
         FeatureInfoForm form = new FeatureInfoForm(fds);
     }
 }