Exemple #1
0
        /// <summary>
        /// Создает контроллер создания и управления картой
        /// </summary>
        /// <param name="pb"></param>
        /// <param name="panel"></param>
        /// <param name="font"></param>
        private MakeMap(PictureBox pb, Panel panel, Font font, ToolStripStatusLabel statusLabel)
        {
            {
                StaticViewer.CreateViewer(font);

                this.StatusLabel = statusLabel;

                MapLocationX = 0;
                MapLocationY = 0;

                StaticViewer.Width = 10;

                ZoomCurValue = 1;
                view         = pb;
                substrate    = panel;
                view.Hide();
                view.Enabled = false;

                StaticViewer.Viewer.Resize();
                ViewPort = this;
            }
        }
Exemple #2
0
 /// <summary>
 /// Создание конроллера отрисовки статичных объектов
 /// </summary>
 /// <param name="font"></param>
 /// <returns></returns>
 public static StaticViewer CreateViewer(Font font)
 {
     return(viewer = new StaticViewer(font));
 }