Ejemplo n.º 1
0
        internal bool DrawScale()
        {
            ScaleForm dial = new ScaleForm(this.MapScale);

            if (dial.ShowDialog() == DialogResult.OK)
            {
                SetCenterAndScale(m_MapPanelExtent.Center, dial.MapScale, true);
            }

            dial.Dispose();
            return(true);
        }
Ejemplo n.º 2
0
        private void ctxScaleMenuItem_Click(object sender, EventArgs e)
        {
            MapControl mc   = this.magnifyMapControl;
            ScaleForm  dial = new ScaleForm(mc.MapScale);

            if (dial.ShowDialog() == DialogResult.OK)
            {
                mc.SetCenterAndScale(m_Tool.RightClickPosition, dial.MapScale, false);
            }

            dial.Dispose();
            //this.magnifyMapControl.DrawScale();
        }
Ejemplo n.º 3
0
        internal bool DrawScale()
        {
            ScaleForm dial = new ScaleForm(this.MapScale);
            if (dial.ShowDialog() == DialogResult.OK)
                SetCenterAndScale(m_MapPanelExtent.Center, dial.MapScale, true);

            dial.Dispose();
            return true;
        }
Ejemplo n.º 4
0
        private void ctxScaleMenuItem_Click(object sender, EventArgs e)
        {
            MapControl mc = this.magnifyMapControl;
            ScaleForm dial = new ScaleForm(mc.MapScale);
            if (dial.ShowDialog() == DialogResult.OK)
                mc.SetCenterAndScale(m_Tool.RightClickPosition, dial.MapScale, false);

            dial.Dispose();
            //this.magnifyMapControl.DrawScale();
        }