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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 686 - (hide annotations) (download)
Mon Jun 17 09:31:52 2013 UTC (8 years ago) by william
File size: 1371 byte(s)
+ massive move of source files

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 william 686 using RomCheater.Core;
11 william 439
12 william 686
13 william 439 namespace RomCheater.Docking
14     {
15     public partial class FloatingUserControlDock : DockContent
16     {
17 william 440 private List<IUserControlPlugin> userplugins;
18 william 639
19     public List<IUserControlPlugin> UserPlugins
20 william 439 {
21 william 639 get { return userplugins; }
22     set { userplugins = value; }
23 william 439 }
24    
25 william 639 public FloatingUserControlDock()
26 william 439 {
27 william 639 InitializeComponent();
28     this.UserPlugins = new List<IUserControlPlugin>();
29 william 439 }
30 william 440
31 william 639 //protected FloatingUserControlDock(List<IUserControlPlugin> plugins) : this()
32     //{
33     // this.UserPlugins = plugins;
34     //}
35    
36 william 440 private void FloatingUserControlDock_Shown(object sender, EventArgs e)
37     {
38 william 639 foreach (var plugin in this.UserPlugins)
39 william 440 {
40     plugin.Show(this.dpanel);
41     }
42     }
43 william 678
44     private void FloatingUserControlDock_Deactivate(object sender, EventArgs e)
45     {
46     foreach (var t in this.dpanel.Contents)
47     {
48     t.OnDeactivate(e);
49     }
50     }
51 william 439 }
52     }

  ViewVC Help
Powered by ViewVC 1.1.22