Summary description for LayerResizerWnd.
상속: System.Windows.Forms.Form
예제 #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();
        }
예제 #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();
        }