Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/23/15 16:14:30 (8 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/Administration/Views/ProblemView.cs

    r12012 r13338  
    164164      }
    165165      catch (Exception ex) {
    166         ErrorHandling.ShowErrorDialog(this, "Store authorized users and groups failed.", ex);
     166        MainFormManager.MainForm.ShowError("Store authorized users and groups failed.", ex);
    167167      }
    168168    }
     
    223223        }
    224224        catch (Exception ex) {
    225           ErrorHandling.ShowErrorDialog(this, "Create new problem data failed.", ex);
     225          MainFormManager.MainForm.ShowError("Create new problem data failed.", ex);
    226226        }
    227227        SetEnabledStateOfControls();
     
    304304        Cursor = Cursors.Default;
    305305        Enabled = true;
    306         if (exception != null) ErrorHandling.ShowErrorDialog(this, errorMessage, exception);
     306        if (exception != null) MainFormManager.MainForm.ShowError(errorMessage, exception);
    307307        if (continueWith != null) continueWith();
    308308      }
Note: See TracChangeset for help on using the changeset viewer.