Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/23/15 16:14:30 (9 years ago)
Author:
gkronber
Message:

#2522:

  • moved UI components out of HeuristicLab.PluginInfrastructure -> HeuristicLab.PluginInfrastructure.UI
  • moved ErrorDialog to HeuristicLab.MainForm.WindowsForms
  • moved ErrorHandling (for building an error message string) to HeuristicLab.Common
  • Changed exception handlers in Views to use MainForm.ShowError()
  • Changed usages for ErrorDialog in non-UI components to throw exceptions instead.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.OKB.Views/3.3/Query/Views/QueryView.cs

    r12012 r13338  
    130130            }
    131131            catch (AggregateException remaining) {
    132               if (remaining.InnerExceptions.Count == 1) ErrorHandling.ShowErrorDialog(this, "Refresh results failed.", remaining.InnerExceptions[0]);
    133               else ErrorHandling.ShowErrorDialog(this, "Refresh results failed.", remaining);
     132              if (remaining.InnerExceptions.Count == 1) MainFormManager.MainForm.ShowError("Refresh results failed.", remaining.InnerExceptions[0]);
     133              else MainFormManager.MainForm.ShowError("Refresh results failed.", remaining);
    134134            }
    135135          }
     
    162162
    163163    private void refreshFiltersButton_Click(object sender, EventArgs e) {
    164       Content.RefreshAsync(new Action<Exception>((Exception ex) => ErrorHandling.ShowErrorDialog(this, "Refresh failed.", ex)));
     164      Content.RefreshAsync(new Action<Exception>((Exception ex) => MainFormManager.MainForm.ShowError("Refresh failed.", ex)));
    165165    }
    166166
Note: See TracChangeset for help on using the changeset viewer.