Skip to content
Browse files

Simplified ReloadDockWindows method.

  • Loading branch information...
1 parent 187579e commit f18846e6b99396ac0093bb469bd954f6d9c2d691 @lextm lextm committed Mar 24, 2013
Showing with 1 addition and 6 deletions.
  1. +1 −6 WinFormsUI/Docking/DockPanel.cs
View
7 WinFormsUI/Docking/DockPanel.cs
@@ -1079,12 +1079,7 @@ protected virtual void OnContentRemoved(DockContentEventArgs e)
internal void ReloadDockWindows()
{
var old = m_dockWindows;
- m_dockWindows = new DockWindowCollection(this);
- foreach (var dockWindow in DockWindows)
- {
- Controls.Add(dockWindow);
- }
-
+ LoadDockWindows();
foreach (var dockWindow in old)
{
Controls.Remove(dockWindow);

0 comments on commit f18846e

Please sign in to comment.
Something went wrong with that request. Please try again.