Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/06/19 15:36:43 (5 years ago)
Author:
bburlacu
Message:

#2679: Update branch: framework version 4.6.1, use heal.attic for persistence, some minor refactoring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2679_HeuristicLab.GoalSeekingProblem/HeuristicLab.GoalSeekingProblem.Views/3.4/GoalSeekingOptimizerView.cs

    r14526 r16901  
    2020#endregion
    2121
    22 using System;
    23 using System.Windows.Forms;
    2422using HeuristicLab.MainForm;
    2523using HeuristicLab.Optimization;
    2624using HeuristicLab.Optimization.Views;
    2725using HeuristicLab.Problems.DataAnalysis;
     26using System;
     27using System.Windows.Forms;
    2828
    2929namespace HeuristicLab.GoalSeeking {
     
    6161    protected override void RegisterContentEvents() {
    6262      base.RegisterContentEvents();
    63       Content.AlgorithmChanged += (o, e) => { algorithmViewHost.Content = Content.Optimizer; };
    64       Content.ProblemChanged += (o, e) => { problemViewHost.Content = Content.Problem; };
    65       Content.ProblemDataChanged += (o, e) => { dataViewHost.Content = Content.ProblemData; };
    66       Content.ResultsChanged += (o, e) => { resultsViewHost.Content = Content.Results; };
     63      Content.AlgorithmChanged += (o, e) => algorithmViewHost.Content = Content.Optimizer;
     64      Content.ProblemChanged += (o, e) => problemViewHost.Content = Content.Problem;
     65      Content.ProblemDataChanged += (o, e) => dataViewHost.Content = Content.ProblemData;
     66      Content.ResultsChanged += (o, e) => resultsViewHost.Content = Content.Results;
    6767    }
    6868
     
    7777          Content.Problem = (IGoalSeekingProblem)e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat);
    7878          problemViewHost.Content = Content.Problem;
    79         }
    80         catch (Exception ex) {
     79        } catch (Exception ex) {
    8180          MessageBox.Show(ex.Message, "Set problem", MessageBoxButtons.OK, MessageBoxIcon.Error);
    8281        }
     
    10099          Content.Optimizer = (IAlgorithm)e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat);
    101100          algorithmViewHost.Content = Content.Optimizer;
    102         }
    103         catch (Exception ex) {
     101        } catch (Exception ex) {
    104102          MessageBox.Show(ex.Message, "Set algorithm", MessageBoxButtons.OK, MessageBoxIcon.Error);
    105103        }
     
    123121          Content.ProblemData = (IRegressionProblemData)e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat);
    124122          dataViewHost.Content = Content.ProblemData;
    125         }
    126         catch (Exception ex) {
     123        } catch (Exception ex) {
    127124          // provide some information to the user
    128125          MessageBox.Show(ex.Message, "Set problem data", MessageBoxButtons.OK, MessageBoxIcon.Error);
Note: See TracChangeset for help on using the changeset viewer.