Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/05/10 14:04:53 (14 years ago)
Author:
mkommend
Message:

corrected RunCollectionConstraints and the according views (ticket#970)

File:
1 edited

Legend:

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

    r3614 r3632  
    9595    }
    9696    private void run_Changed(object sender, EventArgs e) {
    97       IRun run = (IRun)sender;
    98       UpdateRun(run);
     97      if (InvokeRequired)
     98        this.Invoke(new EventHandler(run_Changed), sender, e);
     99      else {
     100        IRun run = (IRun)sender;
     101        UpdateRun(run);
     102      }
    99103    }
    100104
     
    104108      this.dataGridView.Rows[rowIndex].Visible = run.Visible;
    105109      this.dataGridView.Rows[rowIndex].DefaultCellStyle.ForeColor = run.Color;
     110      this.rowsTextBox.Text = this.Content.Count(r => r.Visible).ToString();
    106111    }
    107112
Note: See TracChangeset for help on using the changeset viewer.