private void EditorResizeGridButton_Click(object sender, EventArgs e)
 {
     Properties.Settings.Default["EditorGridTileSize"] = (int)EditorTileSizeInput.Value;
     EditorLayoutRendererOld.tileSize = (int)EditorTileSizeInput.Value;
     //DrawCurrentMapLayout();
     if (EditorShowGridCheckbox.Checked)
     {
         EditorLayoutRendererOld.DrawGrid();
     }
 }
 private void EditorShowGridCheckbox_CheckedChanged(object sender, EventArgs e)
 {
     Properties.Settings.Default["EditorShowGridLines"] = EditorShowGridCheckbox.Checked;
     if (EditorShowGridCheckbox.Checked)
     {
         EditorLayoutRendererOld.DrawGrid();
     }
     else
     {
         EditorLayoutRendererOld.HideGrid();
     }
 }