Beispiel #1
0
        private void OnIdle(object sender, EventArgs e)
        {
            m_Actions.Update();
            double mapScale = mapControl.MapScale;

            mapScaleLabel.Text = (Double.IsNaN(mapScale) ? "Scale undefined" : String.Format("1:{0:0}", mapScale));

            string name = m_Controller.ShapeFileName;

            this.Text = (String.IsNullOrEmpty(name) ? "(Untitled map)" : name);

            mnuViewStatusBar.Checked = statusStrip.Visible;
        }
Beispiel #2
0
        private void OnIdle(object sender, EventArgs e)
        {
            m_Actions.Update();
            double mapScale = mapControl.MapScale;

            mapScaleLabel.Text = (Double.IsNaN(mapScale) ? "Scale undefined" : String.Format("1:{0:0}", mapScale));

            ISpatialModel model = m_Controller.MapModel;

            if (model == null)
            {
                this.Text = "Cadastral Viewer (nothing opened)";
            }
            else
            {
                this.Text = model.Name;
            }

            mnuViewStatusBar.Checked = statusStrip.Visible;
        }