private void CorrectCaseTableNames(object sender, EventArgs e) { try { var finder = new CorrectCaseTableFinder(); finder.CorrectCaseAllTableNames(); } catch (Exception ex) { OutputPane.WriteMessage("Error correcting table name case: {0}", ex.Message); } }
private void CorrectCaseTableNames(object sender, EventArgs e) { try { var task = new System.Threading.Tasks.Task(() => { OutputPane.WriteMessageAndActivatePane("Correcting the case of table names..."); var finder = new CorrectCaseTableFinder(); finder.CorrectCaseAllTableNames(); OutputPane.WriteMessageAndActivatePane("Correcting the case of table names...done"); }); task.Start(); if (task.Exception != null) { throw task.Exception; } } catch (Exception ex) { OutputPane.WriteMessage("Error correcting table name case: {0}", ex.Message); } }