/[RomCheater]/trunk/RomCheater.PluginFramework/Core/UserControlPlugin.cs
ViewVC logotype

Annotation of /trunk/RomCheater.PluginFramework/Core/UserControlPlugin.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 855 - (hide annotations) (download)
Tue Sep 16 21:09:17 2014 UTC (6 years, 7 months ago) by william
File size: 1470 byte(s)
+ add support in UserControlDock to save and restore the user plugin layout

1 william 437 using System;
2     using System.Collections.Generic;
3     using System.Linq;
4     using System.Text;
5 william 440 using WeifenLuo.WinFormsUI.Docking;
6 william 686 using RomCheater.Core;
7 william 437
8     namespace RomCheater.PluginFramework.Core
9     {
10     public abstract class UserControlPlugin : PluginBase, IUserControlPlugin
11     {
12     public UserControlPlugin() { }
13 william 682 public override bool IsGenericPlugin { get { return false; } }
14     public override bool IsNullPlugin { get { return false; } }
15 william 437 public override Guid ID
16     {
17     get { return new Guid(); }
18     }
19     public override string Name
20     {
21     get
22     {
23     return "Unknown UserControl Plugin";
24     }
25     }
26     public override string Description
27     {
28     get
29     {
30     return "";
31     }
32     }
33 william 440
34     public abstract void Show();
35     public abstract void Show(DockPanel dockPanel);
36     public abstract void Show(DockPanel dockPanel, DockState dockState);
37     public abstract void Config();
38 william 717
39    
40     public abstract void Activate();
41     public abstract void Close();
42 william 855 private DockContentHandler _DockHandler;
43     public abstract DockContentHandler DockHandler { get; set; }
44 william 717 public IDockContent DockContent { get { return DockHandler.Content; } }
45     public string IDockContentTypeName { get { return DockContent.GetType().FullName; } }
46 william 437 }
47     }

  ViewVC Help
Powered by ViewVC 1.1.22