/[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/17 09:31:52	686
@@ -7,19 +7,46 @@
 using System.Text;
 using System.Windows.Forms;
 using WeifenLuo.WinFormsUI.Docking;
-using RomCheater.PluginFramework.Interfaces;
+using RomCheater.Core;
+
 
 namespace RomCheater.Docking
 {
     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>();
+        }
+
+        //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);
+            }
         }
 
-        public FloatingUserControlDock(List<IUserControlPlugin> plugins) : this()
+        private void FloatingUserControlDock_Deactivate(object sender, EventArgs e)
         {
+            foreach (var t in this.dpanel.Contents)
+            {
+                t.OnDeactivate(e);
+            }
         }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22