Changeset 17069 for stable/HeuristicLab.MainForm.WindowsForms/3.3/Controls
- Timestamp:
- 07/04/19 15:33:31 (5 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk merged: 16501-16506
- Property svn:mergeinfo changed
-
stable/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ControlExtensions.cs
r15584 r17069 46 46 } 47 47 } 48 49 public static IEnumerable<Control> GetNestedControls(this Control control, Func<Control, bool> condition = null) {50 if (control == null) yield break;51 if (condition == null) condition = (c) => true;52 53 Queue<Control> unprocessed = new Queue<Control>();54 unprocessed.Enqueue(control);55 56 while (unprocessed.Count > 0) {57 Control c = unprocessed.Dequeue();58 if (condition(c)) yield return c;59 foreach (Control child in c.Controls)60 unprocessed.Enqueue(child);61 }62 }63 48 } 64 49 } -
stable/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ProgressView.cs
r17064 r17069 115 115 UpdateButtonsState(); 116 116 117 Control.SuspendRepaint(); 117 118 Control.Enabled = false; 118 119 Parent = Control.Parent; 119 120 BringToFront(); 121 Control.ResumeRepaint(true); 120 122 Visible = true; 121 123 } … … 129 131 130 132 Visible = false; 133 Control.SuspendRepaint(); 131 134 Control.Enabled = true; 135 Control.ResumeRepaint(true); 132 136 Parent = null; 133 137 }
Note: See TracChangeset
for help on using the changeset viewer.