/// <summary>
 /// Constructs the SymbolSelectorControl object.
 /// </summary>
 public SymbolSelectorControl()
 {
     InitializeComponent();
     mapControl = new MapControl();
     // setting up the parameters of thumbnail images
     this.mapControl.Size = new System.Drawing.Size(imageSize, imageSize);
     this.mapControl.Gap = 4;
     SetSpacing((short)(imageSize + 10), (short)(imageSize + 10));
     imageList.ImageSize = new Size(imageSize, imageSize);
 }
        public TileManagerForm(MainForm mainFormRef, string mapfile, MapControl mapobject)
        {
            InitializeComponent();

            // references from main form
            mainForm = mainFormRef;
            mapfilepath = mapfile;
            mapControl = mapobject;
            map = mapControl.map;
        }