예제 #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);
        }
예제 #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();
        }
예제 #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;
        }
예제 #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();
        }