private void HitAnalyseDlg_Load(object obj, EventArgs eventArg) { this.chitAnalyse_0.m_app = this.m_app; this.chitAnalyse_0.IMap = this.m_app.FocusMap; CBase cBase = new CBase(); int layerCount = this.m_app.FocusMap.LayerCount; for (int i = 0; i < layerCount; i++) { cBase.AddLayer(this.m_app.FocusMap.get_Layer(i), cBase.m_listLayers); } foreach (IFeatureLayer mListLayer in cBase.m_listLayers) { LayerInfo layerInfo = new LayerInfo(mListLayer); this.comboBoxGX.Items.Add(layerInfo); } this.comboBoxGX.Enabled = this.radioButton2.Checked; }