private void biNewMap_Click(object sender, EventArgs e) { FrmEditMap editMap = new FrmEditMap(); editMap.ShowDialog(this); if (editMap.IsChanged) { AddTree(editMap.MapInfo); } }
private void biModifyMap_Click(object sender, EventArgs e) { var map = GetSelectMap(); if (map != null) { FrmEditMap editMap = new FrmEditMap(map); editMap.ShowDialog(this); if (editMap.IsChanged) { mapCtrl.LoadMapInfo(editMap.MapInfo); mapCtrl.FullExtent(); } } }