Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4216


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

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

Location:
trunk/sources
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/EngineView.cs

    r3904 r4216  
    9595        Invoke(new EventHandler(Content_ExecutionTimeChanged), sender, e);
    9696      else
    97         executionTimeTextBox.Text = Content.ExecutionTime.ToString();
     97        executionTimeTextBox.Text = Content == null ? "-" : Content.ExecutionTime.ToString();
    9898    }
    9999  }
  • 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.