Summary description for LayerResizerWnd.
Inheritance: System.Windows.Forms.Form
Beispiel #1
0
        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();
        }
Beispiel #2
0
        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();
        }