private void dumpObstaclesToolStripMenuItem_Click(object sender, EventArgs e)
{
LBDebug.Controls.Clear();
try
{
LBDebug.Controls.Add(new UserControlDebugEntry(ObjectCache.Obstacles.DumpDebugInfo()));
Logger.DBLog.InfoFormat("Dumping Obstacle Cache");
var SortedValues = ObjectCache.Obstacles.Values.OrderBy(obj => obj.Obstacletype.Value).ThenBy(obj => obj.CentreDistance);
foreach (var item in ObjectCache.Obstacles)
{
LBDebug.Controls.Add(new UserControlDebugEntry(item.Value.DebugString));
}
}
catch
{
LBDebug.Controls.Add(new UserControlDebugEntry("End of Output due to Modification Exception"));
}
LBDebug.Focus();
}