private void checkedListBox1_SelectedIndexChanged(object sender, EventArgs e) { this.listBox1.Items.Clear(); SimpleStatMyshUI.LayerboxItem item = checkedListBox1.SelectedItem as SimpleStatMyshUI.LayerboxItem; if (item == null) { return; } IFeatureLayer featureLayer = item.m_pPipeLayer; this.FillFieldValuesToListBox(featureLayer, this.listBox1); }
private void AddFeatureLayer(IFeatureLayer iFLayer) { if (iFLayer != null) { string aliasName = iFLayer.FeatureClass.AliasName; if (this.pPipeCfg.IsPipelineLayer(iFLayer.Name, enumPipelineDataType.Line)) { SimpleStatMyshUI.LayerboxItem layerboxItem = new SimpleStatMyshUI.LayerboxItem(); layerboxItem.m_pPipeLayer = iFLayer; this.checkedListBox1.Items.Add(layerboxItem); } } }