Changeset 5222
- Timestamp:
- 01/05/11 09:45:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DebugEngine/3.3/DebugEngineView.cs
r5114 r5222 25 25 using HeuristicLab.Core.Views; 26 26 using HeuristicLab.MainForm; 27 using System.ComponentModel; 27 28 namespace HeuristicLab.DebugEngine { 28 29 … … 124 125 private bool stepping = false; 125 126 private void stepButton_Click(object sender, EventArgs e) { 127 BackgroundWorker worker = new BackgroundWorker(); 128 bool skipStackops = skipStackOpsCheckBox.Checked; 129 worker.DoWork += (s, a) => { 130 Content.Step(skipStackops); 131 }; 132 worker.RunWorkerCompleted += (s, a) => { 133 stepping = false; 134 SetEnabledStateOfControls(); 135 }; 126 136 stepping = true; 127 Content.Step(skipStackOpsCheckBox.Checked);128 stepping = false;137 stepButton.Enabled = false; 138 worker.RunWorkerAsync(); 129 139 } 130 140
Note: See TracChangeset
for help on using the changeset viewer.