Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/15/10 03:13:43 (14 years ago)
Author:
swagner
Message:

Fixed exception which was thrown when hiding views while the execution time is updated (#1148)

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

Legend:

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

    r4102 r4216  
    147147        Invoke(new EventHandler(Content_ExecutionTimeChanged), sender, e);
    148148      else
    149         executionTimeTextBox.Text = Content.ExecutionTime.ToString();
     149        executionTimeTextBox.Text = Content == null ? "-" : Content.ExecutionTime.ToString();
    150150    }
    151151    protected virtual void Content_StoreAlgorithmInEachRunChanged(object sender, EventArgs e) {
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/BatchRunView.cs

    r4070 r4216  
    147147        Invoke(new EventHandler(Content_ExecutionTimeChanged), sender, e);
    148148      else
    149         executionTimeTextBox.Text = Content.ExecutionTime.ToString();
     149        executionTimeTextBox.Text = Content == null ? "-" : Content.ExecutionTime.ToString();
    150150    }
    151151    private void Content_ExceptionOccurred(object sender, EventArgs<Exception> e) {
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/ExperimentView.cs

    r4070 r4216  
    141141        Invoke(new EventHandler(Content_ExecutionTimeChanged), sender, e);
    142142      else
    143         executionTimeTextBox.Text = Content.ExecutionTime.ToString();
     143        executionTimeTextBox.Text = Content == null ? "-" : Content.ExecutionTime.ToString();
    144144    }
    145145    private void Content_ExceptionOccurred(object sender, EventArgs<Exception> e) {
Note: See TracChangeset for help on using the changeset viewer.