private void CreateNewMap(bool destroy)
        {
            NewMapForm form = new NewMapForm();

            form.ShowDialog();

            if (form.CreateNewMap || !destroy)
            {
                m_grid_size = form.MapSize;
                if (destroy)
                {
                    DestoryManagedResources();
                }
                CreateManagedResources();

                layerCheckBox.SelectedIndex = 0;
                Tile.ActiveLayer            = 0;
            }
        }
        private void CreateNewMap(bool destroy)
        {
            NewMapForm form = new NewMapForm();
            form.ShowDialog();

            if (form.CreateNewMap || !destroy)
            {
                m_grid_size = form.MapSize;
                if (destroy) DestoryManagedResources();
                CreateManagedResources();

                layerCheckBox.SelectedIndex = 0;
                Tile.ActiveLayer = 0;
            }
        }