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