- Timestamp:
- 04/19/10 21:09:25 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/View.cs
r3416 r3417 151 151 Type controlType = c.GetType(); 152 152 PropertyInfo controlPropertyInfo = controlType.GetProperty(propertyInfo.Name, propertyInfo.PropertyType); 153 if (type.IsAssignableFrom(controlType) && controlPropertyInfo != null) {153 if (type.IsAssignableFrom(controlType) && controlPropertyInfo != null) { 154 154 var thisValue = propertyInfo.GetValue(this, null); 155 155 controlPropertyInfo.SetValue(c, thisValue, null); … … 183 183 internal void OnClosingHelper(object sender, FormClosingEventArgs e) { 184 184 FormClosingEventArgs eventArgs = new FormClosingEventArgs(this.closeReason, e.Cancel); 185 if (this.closeReason != CloseReason.None) 185 if (this.closeReason != CloseReason.None) { 186 186 this.OnClosing(eventArgs); 187 else 187 if (eventArgs.Cancel != e.Cancel) 188 e.Cancel = eventArgs.Cancel; 189 } else 188 190 this.OnClosing(e); 189 190 if (eventArgs.Cancel != e.Cancel)191 e.Cancel = eventArgs.Cancel;192 191 this.closeReason = CloseReason.None; 193 192 }
Note: See TracChangeset
for help on using the changeset viewer.