/[RomCheater]/trunk/RomCheater.CheatPlugin/CheatCodePlugin.cs
ViewVC logotype

Contents of /trunk/RomCheater.CheatPlugin/CheatCodePlugin.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: 1673 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.Linq;
4 using System.Text;
5 using RomCheater.PluginFramework.Core;
6 using WeifenLuo.WinFormsUI.Docking;
7
8 namespace RomCheater.CheatPlugin
9 {
10 public class CheatCodePlugin : UserControlPlugin
11 {
12
13 const string name = "Cheat Code Converter Plugin";
14 const string description = "A simple plugin to allow the conversion of cheat codes to one or more formats";
15
16 public CheatCodePlugin() : base() { }
17 public override Guid ID
18 {
19 get { return AssemblyGuid.GetGuid(typeof(CheatCodePlugin)); }
20 //get { return new Guid(); }
21 }
22 public override string Name
23 {
24 get
25 {
26 return name;
27 }
28 }
29 public override string Description
30 {
31 get
32 {
33 return description;
34 }
35 }
36 public override void Reload(bool silent)
37 {
38 }
39
40 public override void Config()
41 {
42 Logging.logger.Warn.WriteLine("This plugin has no configurable settings.");
43 }
44
45 public override void Show()
46 {
47 var t = new CheatCodeDockContent();
48 t.Show();
49 }
50 public override void Show(DockPanel dockPanel)
51 {
52 var t = new CheatCodeDockContent();
53 t.Show(dockPanel);
54 }
55 public override void Show(DockPanel dockPanel, DockState dockState)
56 {
57 var t = new CheatCodeDockContent();
58 t.Show(dockPanel, dockState);
59 }
60 }
61 }

  ViewVC Help
Powered by ViewVC 1.1.22