/[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 891 - (hide annotations) (download)
Wed Sep 17 05:14:20 2014 UTC (7 years, 1 month ago) by william
File size: 1629 byte(s)

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 889 using RomCheater.Interfaces;
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 william 862 public abstract void Close();
42 william 855 public abstract DockContentHandler DockHandler { get; set; }
43 william 717 public IDockContent DockContent { get { return DockHandler.Content; } }
44     public string IDockContentTypeName { get { return DockContent.GetType().FullName; } }
45 william 891
46    
47     public void SetIcon(System.Drawing.Icon icon)
48     {
49     if (DockContent != null)
50     {
51     DockContent.DockIcon = icon;
52     }
53     }
54 william 437 }
55     }

  ViewVC Help
Powered by ViewVC 1.1.22