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.
Location:
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Hive.Views/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Hive.Views/3.3/HiveItemView.cs

    r12012 r13338  
    7777      }
    7878      catch (Exception ex) {
    79         ErrorHandling.ShowErrorDialog(this, "Store failed.", ex);
     79        MainFormManager.MainForm.ShowError("Store failed.", ex);
    8080      }
    8181    }
  • branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/OptimizerHiveTaskView.cs

    r12012 r13338  
    7777      task.ContinueWith((t) => {
    7878        Content.Progress.Finish();
    79         ErrorHandling.ShowErrorDialog(this, "An error occured while resuming the task.", t.Exception);
     79        MainFormManager.MainForm.ShowError("An error occured while resuming the task.", t.Exception);
    8080      }, TaskContinuationOptions.OnlyOnFaulted);
    8181    }
     
    8585      task.ContinueWith((t) => {
    8686        Content.Progress.Finish();
    87         ErrorHandling.ShowErrorDialog(this, "An error occured while pausing the task.", t.Exception);
     87        MainFormManager.MainForm.ShowError("An error occured while pausing the task.", t.Exception);
    8888      }, TaskContinuationOptions.OnlyOnFaulted);
    8989    }
     
    9393      task.ContinueWith((t) => {
    9494        Content.Progress.Finish();
    95         ErrorHandling.ShowErrorDialog(this, "An error occured while stopping the task.", t.Exception);
     95        MainFormManager.MainForm.ShowError("An error occured while stopping the task.", t.Exception);
    9696      }, TaskContinuationOptions.OnlyOnFaulted);
    9797    }
  • branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Hive.Views/3.3/TreeView/ItemTreeView.cs

    r12012 r13338  
    418418        }
    419419        catch (Exception ex) {
    420           ErrorHandling.ShowErrorDialog(this, ex);
     420          MainFormManager.MainForm.ShowError(ex.Message, ex);
    421421        }
    422422      }
Note: See TracChangeset for help on using the changeset viewer.