/[RomCheater]/trunk/RomCheater/Docking/FloatingUserControlDock.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/FloatingUserControlDock.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater/Docking/FloatingUserControlDock.cs	2013/05/28 18:39:39	439
+++ trunk/RomCheater/Docking/FloatingUserControlDock.cs	2013/06/08 20:21:58	639
@@ -13,13 +13,31 @@
 {
     public partial class FloatingUserControlDock : DockContent
     {
+        private List<IUserControlPlugin> userplugins;
+
+        public List<IUserControlPlugin> UserPlugins
+        {
+            get { return userplugins; }
+            set { userplugins = value; }
+        }
+
         public FloatingUserControlDock()
         {
             InitializeComponent();
+            this.UserPlugins = new List<IUserControlPlugin>();
         }
 
-        public FloatingUserControlDock(List<IUserControlPlugin> plugins) : this()
+        //protected FloatingUserControlDock(List<IUserControlPlugin> plugins) : this()
+        //{
+        //  this.UserPlugins = plugins;
+        //}
+
+        private void FloatingUserControlDock_Shown(object sender, EventArgs e)
         {
+            foreach (var plugin in this.UserPlugins)
+            {
+                plugin.Show(this.dpanel);
+            }
         }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22