private void btn_RenderCal_Click(object sender, EventArgs e) { if (this.lb_RenderIndexGeo.SelectedItems.Count > 0 && (this.lb_RenderIndexGeo.SelectedItems[0] as CheckIndexEdit).NewIndex.IsInitail) { CheckIndexEdit SelectIndexItem = this.lb_RenderIndexGeo.SelectedItems[0] as CheckIndexEdit; IRenderIndexInfo tempIndexInfo = featureCls.CalculateDefaultRenderIndex(SelectIndexItem.GeoFieldName); SelectIndexItem.NewIndex.L1 = tempIndexInfo.L1; this.SetRenderIndexControl(SelectIndexItem.GeoFieldName, SelectIndexItem.NewIndex); } }