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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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

  ViewVC Help
Powered by ViewVC 1.1.22