private void btnCreate_Click(object sender, EventArgs e)
        {
            using (AssignTileTypeForm assignTileTypeForm = new AssignTileTypeForm(-1, tileTypes, TileTypeChanged))
            {
                assignTileTypeForm.ShowDialog();

                listTileTypes.Invalidate();
            }
        }
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (listTileTypes.SelectedIndex == 0)
            {
                MessageBox.Show(Resources.Text_Cannot_Edit_Default_Tile_Type, Resources.Caption_Information, MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                using (AssignTileTypeForm assignTileTypeForm = new AssignTileTypeForm(listTileTypes.SelectedIndex, tileTypes, TileTypeChanged))
                {
                    int prevTileType = tileTypes[listTileTypes.SelectedIndex].Identifier;

                    assignTileTypeForm.ShowDialog();

                    customLayer.ReplaceTileType(prevTileType, tileTypes[listTileTypes.SelectedIndex]);
                    
                    listTileTypes.Invalidate();
                }
            }
        }