/[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

revision 440 by william, Tue May 28 19:10:10 2013 UTC revision 639 by william, Sat Jun 8 20:21:58 2013 UTC
# Line 14  namespace RomCheater.Docking Line 14  namespace RomCheater.Docking
14      public partial class FloatingUserControlDock : DockContent      public partial class FloatingUserControlDock : DockContent
15      {      {
16          private List<IUserControlPlugin> userplugins;          private List<IUserControlPlugin> userplugins;
17          public FloatingUserControlDock()  
18            public List<IUserControlPlugin> UserPlugins
19          {          {
20              InitializeComponent();              get { return userplugins; }
21              userplugins = new List<IUserControlPlugin>();              set { userplugins = value; }
22          }          }
23    
24          public FloatingUserControlDock(List<IUserControlPlugin> plugins) : this()          public FloatingUserControlDock()
25          {          {
26              this.userplugins = plugins;              InitializeComponent();
27                this.UserPlugins = new List<IUserControlPlugin>();
28          }          }
29    
30            //protected FloatingUserControlDock(List<IUserControlPlugin> plugins) : this()
31            //{
32            //  this.UserPlugins = plugins;
33            //}
34    
35          private void FloatingUserControlDock_Shown(object sender, EventArgs e)          private void FloatingUserControlDock_Shown(object sender, EventArgs e)
36          {          {
37              foreach (var plugin in userplugins)              foreach (var plugin in this.UserPlugins)
38              {              {
39                  plugin.Show(this.dpanel);                  plugin.Show(this.dpanel);
40              }              }

Legend:
Removed from v.440  
changed lines
  Added in v.639

  ViewVC Help
Powered by ViewVC 1.1.22