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.Access.Views/3.3/UserViews/RefreshableLightweightUserInformationView.cs

    r12012 r13338  
    2222using System;
    2323using System.Windows.Forms;
     24using HeuristicLab.MainForm;
    2425
    2526namespace HeuristicLab.Clients.Access.Views {
     
    3940
    4041    protected override void RefreshData() {
    41       Content.ExecuteActionAsync(RefreshUserData, PluginInfrastructure.ErrorHandling.ShowErrorDialog);
     42      Content.ExecuteActionAsync(RefreshUserData, (ex) => MainFormManager.MainForm.ShowError(ex.Message, ex));
    4243    }
    4344
     
    7172      AccessClient.Instance.ExecuteActionAsync(new Action(delegate {
    7273        AccessClient.CallAccessService(x => x.UpdateLightweightUser(UserInformation.Instance.User));
    73       }), HeuristicLab.PluginInfrastructure.ErrorHandling.ShowErrorDialog);
     74      }), (ex) => MainFormManager.MainForm.ShowError(ex.Message, ex));
    7475    }
    7576  }
Note: See TracChangeset for help on using the changeset viewer.