- Timestamp:
- 08/23/13 17:52:50 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ProgressView.cs
r9894 r9907 25 25 namespace HeuristicLab.MainForm.WindowsForms { 26 26 internal sealed partial class ProgressView : UserControl { 27 private const int defaultControlHeight = 88; 28 private const int collapsedControlHeight = 55; 29 27 30 private readonly Control control; 28 31 public Control Control { … … 80 83 return; 81 84 } 85 int height = Content.CanBeCanceled ? Height : collapsedControlHeight; 86 82 87 Left = (Control.ClientRectangle.Width / 2) - (Width / 2); 83 Top = (Control.ClientRectangle.Height / 2) - ( Height / 2);88 Top = (Control.ClientRectangle.Height / 2) - (height / 2); 84 89 Anchor = AnchorStyles.None; 85 90 … … 127 132 cancelButton.Visible = content != null && content.CanBeCanceled; 128 133 cancelButton.Enabled = content != null && content.CanBeCanceled; 134 135 if (content != null && content.CanBeCanceled) { 136 Height = defaultControlHeight; 137 } else if (content != null && !content.CanBeCanceled) { 138 Height = collapsedControlHeight; 139 } 129 140 } 130 141
Note: See TracChangeset
for help on using the changeset viewer.