// Sets the grid visibility to the opposite state of what it currently is. private void gridMenuBar_Click(object sender, EventArgs e) { map.ToggleGrid(); Refresh(); }