private void toolStripButton13_Click(object sender, EventArgs e) { frmData wind = new frmData(); wind.SelectedFinished += ExcuteSelected; wind.RepairData(weMapControl1.AllLayer.Last()); wind.Owner = this; wind.Show(); }
private void 查看属性表ToolStripMenuItem_Click(object sender, EventArgs e) { frmData wind = new frmData(); wind.SelectedFinished += ExcuteSelected; wind.RepairData(weMapControl1.AllLayer[StyleLayerNum]); wind.Owner = this; wind.ShowDialog(); List <string> strr = new List <string>(); strr.AddRange(AllLayer[StyleLayerNum].Field.Keys); strr.RemoveAt(0); for (int i = 0; i < wind.Data.Rows.Count - 1; i++) { Dictionary <string, object> dic = new Dictionary <string, object>(); for (int j = 0; j < wind.dataGridView1.Columns.Count - 12; j++) { dic.Add(strr[i], wind.dataGridView1.Rows[i].Cells[j + 1].ToString()); } AllLayer[StyleLayerNum].Features[i].Attributes = dic; } AllLayer[StyleLayerNum].InitializeData(); weMapControl1.AllLayer = AllLayer; }