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

# Line 13 | Line 13 | namespace RomCheater.Docking
13   {
14      public partial class FloatingUserControlDock : DockContent
15      {
16 +        private List<IUserControlPlugin> userplugins;
17          public FloatingUserControlDock()
18          {
19              InitializeComponent();
20 +            userplugins = new List<IUserControlPlugin>();
21          }
22  
23          public FloatingUserControlDock(List<IUserControlPlugin> plugins) : this()
24          {
25 +            this.userplugins = plugins;
26 +        }
27 +
28 +        private void FloatingUserControlDock_Shown(object sender, EventArgs e)
29 +        {
30 +            foreach (var plugin in userplugins)
31 +            {
32 +                plugin.Show(this.dpanel);
33 +            }
34          }
35      }
36   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines