private void RadioButton_CheckedChanged(object sender, EventArgs e)
        {
            OleDbFeatureLayer oleDbFeatureLayer = (OleDbFeatureLayer)winformsMap1.FindFeatureLayer("OleDbLayer");
            RadioButton       radioButton       = sender as RadioButton;

            if (radioButton != null)
            {
                if (radioButton.Checked)
                {
                    winformsMap1.Overlays["OleDbOverlay"].Lock.EnterWriteLock();
                    oleDbFeatureLayer.Open();
                    oleDbFeatureLayer.FeatureSource.GetAllFeatures(new string[] { "TG_ID", "TG_Wkb" });
                    oleDbFeatureLayer.Close();
                    winformsMap1.Overlays["OleDbOverlay"].Lock.ExitWriteLock();
                    winformsMap1.Refresh();
                }
            }
        }
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            OleDbFeatureLayer oleDbFeatureLayer = (OleDbFeatureLayer)winformsMap1.FindFeatureLayer("OleDbLayer");

            oleDbFeatureLayer.Open();
            if (comboBox1.SelectedItem.ToString() == "GetCount")
            {
                oleDbFeatureLayer.FeatureSource.GetCount();
            }
            else if (comboBox1.SelectedItem.ToString() == "GetAllFeatures")
            {
                oleDbFeatureLayer.FeatureSource.GetAllFeatures(new string[] { "TG_ID", "TG_Wkb" });
            }
            else if (comboBox1.SelectedItem.ToString() == "GetFirstGeometryType")
            {
                ((OleDbFeatureSource)oleDbFeatureLayer.FeatureSource).GetFirstGeometryType();
            }
            oleDbFeatureLayer.Close();
        }