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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 440 - (hide annotations) (download)
Tue May 28 19:10:10 2013 UTC (8 years, 3 months ago) by william
File size: 982 byte(s)
+ add support to usercontrol plugins to dock the controls on the form

1 william 439 using System;
2     using System.Collections.Generic;
3     using System.ComponentModel;
4     using System.Data;
5     using System.Drawing;
6     using System.Linq;
7     using System.Text;
8     using System.Windows.Forms;
9     using WeifenLuo.WinFormsUI.Docking;
10     using RomCheater.PluginFramework.Interfaces;
11    
12     namespace RomCheater.Docking
13     {
14     public partial class FloatingUserControlDock : DockContent
15     {
16 william 440 private List<IUserControlPlugin> userplugins;
17 william 439 public FloatingUserControlDock()
18     {
19     InitializeComponent();
20 william 440 userplugins = new List<IUserControlPlugin>();
21 william 439 }
22    
23     public FloatingUserControlDock(List<IUserControlPlugin> plugins) : this()
24     {
25 william 440 this.userplugins = plugins;
26 william 439 }
27 william 440
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 william 439 }
36     }

  ViewVC Help
Powered by ViewVC 1.1.22