Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/11/10 04:26:09 (14 years ago)
Author:
swagner
Message:

Implemented ErrorDialog and OperatorExecutionException (#1007)

Location:
trunk/sources/HeuristicLab.Optimization.Views/3.3
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.cs

    r3716 r3758  
    2828using HeuristicLab.MainForm;
    2929using HeuristicLab.Persistence.Default.Xml;
     30using HeuristicLab.PluginInfrastructure;
    3031
    3132namespace HeuristicLab.Optimization.Views {
     
    155156        Invoke(new EventHandler<EventArgs<Exception>>(Content_ExceptionOccurred), sender, e);
    156157      else
    157         Auxiliary.ShowErrorMessageBox(e.Value);
     158        ErrorHandling.ShowErrorDialog(this, e.Value);
    158159    }
    159160    #endregion
     
    172173        }
    173174        catch (Exception ex) {
    174           Auxiliary.ShowErrorMessageBox(ex);
     175          ErrorHandling.ShowErrorDialog(this, ex);
    175176        }
    176177      }
     
    196197          }
    197198          catch (Exception ex) {
    198             Invoke(new Action(() => Auxiliary.ShowErrorMessageBox(ex)));
     199            Invoke(new Action(() => ErrorHandling.ShowErrorDialog(this, ex)));
    199200          }
    200201          finally {
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/BatchRunView.cs

    r3716 r3758  
    2727using HeuristicLab.MainForm;
    2828using HeuristicLab.Persistence.Default.Xml;
     29using HeuristicLab.PluginInfrastructure;
    2930
    3031namespace HeuristicLab.Optimization.Views {
     
    120121        Invoke(new EventHandler<EventArgs<Exception>>(Content_ExceptionOccurred), sender, e);
    121122      else
    122         Auxiliary.ShowErrorMessageBox(e.Value);
     123        ErrorHandling.ShowErrorDialog(this, e.Value);
    123124    }
    124125    private void Content_AlgorithmChanged(object sender, EventArgs e) {
     
    157158        }
    158159        catch (Exception ex) {
    159           Auxiliary.ShowErrorMessageBox(ex);
     160          ErrorHandling.ShowErrorDialog(this, ex);
    160161        }
    161162      }
     
    177178          }
    178179          catch (Exception ex) {
    179             Auxiliary.ShowErrorMessageBox(ex);
     180            ErrorHandling.ShowErrorDialog(this, ex);
    180181          }
    181182          finally {
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/ExperimentView.cs

    r3716 r3758  
    2626using HeuristicLab.Core.Views;
    2727using HeuristicLab.MainForm;
     28using HeuristicLab.PluginInfrastructure;
    2829
    2930namespace HeuristicLab.Optimization.Views {
     
    110111        Invoke(new EventHandler<EventArgs<Exception>>(Content_ExceptionOccurred), sender, e);
    111112      else
    112         Auxiliary.ShowErrorMessageBox(e.Value);
     113        ErrorHandling.ShowErrorDialog(this, e.Value);
    113114    }
    114115    #endregion
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/OptimizerListView.cs

    r3588 r3758  
    2626using HeuristicLab.Core.Views;
    2727using HeuristicLab.MainForm;
     28using HeuristicLab.PluginInfrastructure;
    2829
    2930namespace HeuristicLab.Optimization.Views {
     
    5455        }
    5556        catch (Exception ex) {
    56           Auxiliary.ShowErrorMessageBox(ex);
     57          ErrorHandling.ShowErrorDialog(this, ex);
    5758        }
    5859      }
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionConstraintCollectionView.cs

    r3632 r3758  
    2626using HeuristicLab.Optimization;
    2727using System.Drawing;
     28using HeuristicLab.PluginInfrastructure;
    2829
    2930namespace HeuristicLab.Core.Views {
     
    5455        }
    5556        catch (Exception ex) {
    56           Auxiliary.ShowErrorMessageBox(ex);
     57          ErrorHandling.ShowErrorDialog(this, ex);
    5758        }
    5859      }
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/UserDefinedAlgorithmView.cs

    r3725 r3758  
    2727using HeuristicLab.MainForm;
    2828using HeuristicLab.Persistence.Default.Xml;
     29using HeuristicLab.PluginInfrastructure;
    2930
    3031namespace HeuristicLab.Optimization.Views {
     
    9091          }
    9192          catch (Exception ex) {
    92             Auxiliary.ShowErrorMessageBox(ex);
     93            ErrorHandling.ShowErrorDialog(this, ex);
    9394          }
    9495          finally {
Note: See TracChangeset for help on using the changeset viewer.