/[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 19:10:10	440
+++ trunk/RomCheater/Docking/FloatingUserControlDock.cs	2013/06/08 20:21:58	639
@@ -14,20 +14,27 @@
     public partial class FloatingUserControlDock : DockContent
     {
         private List<IUserControlPlugin> userplugins;
-        public FloatingUserControlDock()
+
+        public List<IUserControlPlugin> UserPlugins
         {
-            InitializeComponent();
-            userplugins = new List<IUserControlPlugin>();
+            get { return userplugins; }
+            set { userplugins = value; }
         }
 
-        public FloatingUserControlDock(List<IUserControlPlugin> plugins) : this()
+        public FloatingUserControlDock()
         {
-            this.userplugins = plugins;
+            InitializeComponent();
+            this.UserPlugins = new List<IUserControlPlugin>();
         }
 
+        //protected FloatingUserControlDock(List<IUserControlPlugin> plugins) : this()
+        //{
+        //  this.UserPlugins = plugins;
+        //}
+
         private void FloatingUserControlDock_Shown(object sender, EventArgs e)
         {
-            foreach (var plugin in userplugins)
+            foreach (var plugin in this.UserPlugins)
             {
                 plugin.Show(this.dpanel);
             }

 

  ViewVC Help
Powered by ViewVC 1.1.22