在子窗体写构造函数,然后再在父窗体按钮点击事件下写
public frmIDW(AxMapControl axMapControl1) { InitializeComponent(); this.axMapControl1 = axMapControl1; } private AxMapControl axMapControl1;
private void Krige_ItemClick(object sender, ItemClickEventArgs e) { Krige krige = new Krige( axMapControl1); krige.Visible = true; }
时间: 2024-12-09 16:04:03