private void frmRaterSym_Load(object sender, EventArgs e) { cmbBand.DataSource = RasterRender.getBandName(rasterlayer); List <ComboBoxSym> list3 = new List <ComboBoxSym>(); list3.Add(cmbsymRaster); list3.Add(comboBoxSym1); style.Style("Color Ramps", list3); List <ComboBoxSym> list4 = new List <ComboBoxSym>(); list4.Add(cmbSymClassify); list4.Add(comboBoxSym2); style.Style("Color Ramps", list4); cmbClassifyCount.DataSource = classcount; cmbClassifyMethod.DataSource = classmethod; cmbsymRaster.SelectedIndex = 0; cmbSymClassify.SelectedIndex = 0; cmbClassifyMethod.SelectedIndex = 0; cmbClassifyCount.SelectedIndex = 0; }
private void frmRasterSym_Load(object sender, EventArgs e) { cmbBand.Properties.Items.AddRange(RasterRender.getBandName(rasterlayer)); List <ComboBoxSym> list3 = new List <ComboBoxSym>(); list3.Add(cmbsymRaster); list3.Add(comboBoxSym1); style.Style("Color Ramps", list3); List <ComboBoxSym> list4 = new List <ComboBoxSym>(); list4.Add(cmbSymClassify); list4.Add(comboBoxSym2); style.Style("Color Ramps", list4); cmbClassifyCount.Properties.Items.AddRange(classcount); cmbClassifyMethod.Properties.Items.AddRange(classmethod); cmbsymRaster.SelectedIndex = 0; cmbSymClassify.SelectedIndex = 0; cmbClassifyMethod.SelectedIndex = 0; cmbClassifyCount.SelectedIndex = 3; cmbBand.SelectedIndex = 0; }