private void b_resize_Click(object sender, System.EventArgs e) { LayerResizerWnd lrw = new LayerResizerWnd(); lrw.init(mlayer); if (lrw.ShowDialog() != DialogResult.OK) { return; } // resize from here Size s = lrw.NewSize; if (Global.ActiveMap.Layers.IndexOf(mlayer) == 0) { Global.ActiveMap.ObsLayer.resize(s.Width, s.Height); Global.ActiveMap.ZoneLayer.resize(s.Width, s.Height); } mlayer.resize(s.Width, s.Height); Global.MainMapController.MapView.CalculateScrollValues(); updateui(); }
private void b_resize_Click(object sender, System.EventArgs e) { LayerResizerWnd lrw = new LayerResizerWnd(); lrw.init(mlayer); if(lrw.ShowDialog() != DialogResult.OK) return; // resize from here Size s = lrw.NewSize; if(Global.ActiveMap.Layers.IndexOf(mlayer)==0) { Global.ActiveMap.ObsLayer.resize(s.Width,s.Height); Global.ActiveMap.ZoneLayer.resize(s.Width,s.Height); } mlayer.resize(s.Width,s.Height); Global.MainMapController.MapView.CalculateScrollValues(); updateui(); }