private void Image_MouseDown(object sender, MouseButtonEventArgs e) { mouseLocation = e.GetPosition(null); if (GameIsRunning == false) { map.ChangeCellAliveStatus(new Point2(mouseLocation.X, mouseLocation.Y), 500, 500, true, true); if (gridShowing) { map.UpdateBitMapDataIncludingGrid(); } else { map.UpdateBitMapData(); } MapImage.Source = map.GetBitMapData().Convert(mapSize, 500); } }