Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/22/12 17:26:48 (12 years ago)
Author:
jkarder
Message:

#1853:

  • fixed project references
  • fixed threading
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding.Views/3.3/CreateExperimentDialogV2.cs

    r8517 r8519  
    9393    }
    9494
     95    private void CloseDialog() {
     96      if (InvokeRequired) {
     97        Invoke(new Action(CloseDialog));
     98      } else {
     99        this.DialogResult = DialogResult.OK;
     100        this.Close();
     101      }
     102    }
     103
    95104    private void ReportError(Exception e) {
    96105      if (InvokeRequired) {
     
    144153      generation.ContinueWith(t => {
    145154        generation = null;
    146         this.DialogResult = DialogResult.OK;
    147         this.Close();
     155        CloseDialog();
    148156      }, TaskContinuationOptions.OnlyOnRanToCompletion);
    149157      generation.ContinueWith(t => {
Note: See TracChangeset for help on using the changeset viewer.