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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 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 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 }

  ViewVC Help
Powered by ViewVC 1.1.22