ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Docking/FloatingUserControlDock.cs
(Generate patch)

Comparing trunk/RomCheater/Docking/FloatingUserControlDock.cs (file contents):
Revision 439 by william, Tue May 28 18:39:39 2013 UTC vs.
Revision 440 by william, Tue May 28 19:10:10 2013 UTC

--- trunk/RomCheater/Docking/FloatingUserControlDock.cs	2013/05/28 18:39:39	439
+++ trunk/RomCheater/Docking/FloatingUserControlDock.cs	2013/05/28 19:10:10	440
@@ -13,13 +13,24 @@ namespace RomCheater.Docking
 {
     public partial class FloatingUserControlDock : DockContent
     {
+        private List<IUserControlPlugin> userplugins;
         public FloatingUserControlDock()
         {
             InitializeComponent();
+            userplugins = new List<IUserControlPlugin>();
         }
 
         public FloatingUserControlDock(List<IUserControlPlugin> plugins) : this()
         {
+            this.userplugins = plugins;
+        }
+
+        private void FloatingUserControlDock_Shown(object sender, EventArgs e)
+        {
+            foreach (var plugin in userplugins)
+            {
+                plugin.Show(this.dpanel);
+            }
         }
     }
 }