private void onRouteFolderChanged(object sender, EventArgs e)
{
//We need to invoke the control so we don't get a cross thread exception
if (this.InvokeRequired)
{
this.BeginInvoke((MethodInvoker) delegate
{
onRouteFolderChanged(this, e);
});
return;
}
populateRouteList(rf);
//If this method is triggered whilst the form is disposing, bad things happen...
if (listviewRouteFiles.Columns.Count > 0)
{
listviewRouteFiles.Columns[0].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent);
}
}