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.Administration/3.3/Views/RefreshableUserListView.cs

    r12012 r13338  
    2121
    2222using System;
     23using HeuristicLab.MainForm;
     24
    2325namespace HeuristicLab.Clients.Access.Administration {
    2426  public partial class RefreshableUserListView : RefreshableView {
     
    2830
    2931    protected override void RefreshData() {
    30       Content.RefreshUsersAsync(PluginInfrastructure.ErrorHandling.ShowErrorDialog);
     32      Content.RefreshUsersAsync((ex) => MainFormManager.MainForm.ShowError(ex.Message, ex));
    3133    }
    3234
     
    6870      foreach (var u in e.Items) {
    6971        if (u.Value.Id != Guid.Empty) {
    70           Content.DeleteUserAsync(u.Value, PluginInfrastructure.ErrorHandling.ShowErrorDialog);
     72          Content.DeleteUserAsync(u.Value, (ex) => MainFormManager.MainForm.ShowError(ex.Message, ex));
    7173        }
    7274      }
     
    7476
    7577    private void storeButton_Click(object sender, EventArgs e) {
    76       Content.StoreUsersAsync(PluginInfrastructure.ErrorHandling.ShowErrorDialog);
     78      Content.StoreUsersAsync((ex) => MainFormManager.MainForm.ShowError(ex.Message, ex));
    7779    }
    7880  }
Note: See TracChangeset for help on using the changeset viewer.