Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/08/15 15:42:47 (9 years ago)
Author:
ascheibe
Message:

#2270 fixed cross-threading issues in run collection views

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis.Statistics.Views/3.3/StatisticalTestsView.cs

    r12684 r12690  
    383383    private void CalculateAllGroupsTest() {
    384384      double pval = KruskalWallisTest.Test(data);
    385       pValTextBox.Text = pval.ToString();
    386       if (pval < significanceLevel) {
    387         Invoke(new Action(() => {
     385      DisplayAllGroupsTextResults(pval);
     386    }
     387
     388    private void DisplayAllGroupsTextResults(double pval) {
     389      if (InvokeRequired) {
     390        Invoke((Action<double>)DisplayAllGroupsTextResults, pval);
     391      } else {
     392        pValTextBox.Text = pval.ToString();
     393        if (pval < significanceLevel) {
    388394          groupCompLabel.Image = VSImageLibrary.Default;
    389395          groupComTextLabel.Text = "There are groups with different distributions";
    390         }));
    391       } else {
    392         Invoke(new Action(() => {
     396        } else {
    393397          groupCompLabel.Image = VSImageLibrary.Warning;
    394398          groupComTextLabel.Text = "Groups have an equal distribution";
    395         }));
     399        }
    396400      }
    397401    }
Note: See TracChangeset for help on using the changeset viewer.