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.OKB.Views/3.3/RunCreation/Views
Files:
3 edited

Legend:

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

    r12012 r13338  
    252252        Invoke(new EventHandler<EventArgs<Exception>>(Content_ExceptionOccurred), sender, e);
    253253      else
    254         ErrorHandling.ShowErrorDialog(this, e.Value);
     254        MainFormManager.MainForm.ShowError(e.Value.Message, e.Value);
    255255    }
    256256    #endregion
     
    283283        }
    284284        catch (Exception ex) {
    285           ErrorHandling.ShowErrorDialog(this, ex);
     285          MainFormManager.MainForm.ShowError(ex.Message, ex);
    286286        }
    287287      }
     
    307307          }
    308308          catch (Exception ex) {
    309             Invoke(new Action(() => ErrorHandling.ShowErrorDialog(this, ex)));
     309            Invoke(new Action(() => MainFormManager.MainForm.ShowError(ex.Message, ex)));
    310310          }
    311311          finally {
  • branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.OKB.Views/3.3/RunCreation/Views/OKBExperimentUploadView.cs

    r12971 r13338  
    9393
    9494    private void DisplayError(Exception ex) {
    95       PluginInfrastructure.ErrorHandling.ShowErrorDialog("An error occured while retrieving algorithm and problem information from the OKB.", ex);
     95      MainFormManager.MainForm.ShowError("An error occured while retrieving algorithm and problem information from the OKB.", ex);
    9696    }
    9797
     
    204204      task.ContinueWith((t) => {
    205205        MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this);
    206         PluginInfrastructure.ErrorHandling.ShowErrorDialog("An exception occured while uploading the runs to the OKB.", t.Exception);
     206        MainFormManager.MainForm.ShowError("An exception occured while uploading the runs to the OKB.", t.Exception);
    207207      }, TaskContinuationOptions.OnlyOnFaulted);
    208208    }
  • branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.OKB.Views/3.3/RunCreation/Views/OKBRunView.cs

    r12012 r13338  
    7474          + " Please click in the menu bar on Services -> Access -> Client Information and register your client. ", "Missing client registration", MessageBoxButtons.OK, MessageBoxIcon.Information);
    7575      } catch (Exception ex) {
    76         ErrorHandling.ShowErrorDialog(this, "Store failed.", ex);
     76        MainFormManager.MainForm.ShowError("Store failed.", ex);
    7777      }
    7878    }
Note: See TracChangeset for help on using the changeset viewer.