我用的iobjects 代码是这样的
private void button1_Click(object sender, EventArgs e) { DatasetVector datasetVector = mapControl.Map.Layers[0].Dataset as DatasetVector; string field = "xuhao2"; Colors colors = Colors.MakeRandom(10); ThemeUnique themeUnique = ThemeUnique.MakeDefault(datasetVector, field, colors); mapControl.Map.Layers.Add(datasetVector, themeUnique, true); mapControl.Map.Refresh(); }
这样该怎么改改