private void FindDuplicateIndexes(object sender, EventArgs e)
        {
            try
            {
                CallWrapper();
                var task = new System.Threading.Tasks.Task(() =>
                {
                    OutputPane.WriteMessageAndActivatePane("Finding Duplicate Indexes...");
                    var finder = new DuplicateIndexFinder();
                    finder.ShowDuplicateIndexes();
                    OutputPane.WriteMessageAndActivatePane("Finding Duplicate Indexes...done");
                });

                task.Start();

                if (task.Exception != null)
                {
                    throw task.Exception;
                }
            }
            catch (Exception ex)
            {
                OutputPane.WriteMessage("Error finding duplicate indexes: {0}", ex.Message);
            }
        }
Esempio n. 2
0
 private void FindDuplicateIndexes(object sender, EventArgs e)
 {
     try
     {
         var finder = new DuplicateIndexFinder();
         finder.ShowDuplicateIndexes();
     }
     catch (Exception ex)
     {
         OutputPane.WriteMessage("Error finding duplicate indexes: {0}", ex.Message);
     }
 }