private void miInfo_Click(object sender, System.EventArgs e) { if (_mapView.Map != null) { var mif = new MapInfoForm(); mif.Show(); mif.Map = _mapView.Map; } }
private void miInfo_Click(object sender, System.EventArgs e) { if (mapView.Map == null) return; MapInfoForm mif = new MapInfoForm(); mif.Show(); mif.Map = mapView.Map; }