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.PluginFramework.Interfaces; |
11 |
using RomCheater.PluginFramework.Events; |
12 |
using System.Diagnostics; |
13 |
|
14 |
namespace RomCheater.Docking |
15 |
{ |
16 |
public partial class FloatingMemoryView : DockContent, |
17 |
IAcceptsPlugin<IConfigPlugin>, |
18 |
IAcceptsProcess<Process>, |
19 |
IAcceptsProcessAndConfig, |
20 |
IBrowseMemoryRegion, |
21 |
IAcceptsMemoryRange |
22 |
{ |
23 |
public FloatingMemoryView() { |
24 |
InitializeComponent(); |
25 |
this.AcceptedPlugin = null; |
26 |
this.AcceptedProcess = null; |
27 |
//this.MemoryStart = uint.MinValue; |
28 |
//this.MemorySize = uint.MaxValue; |
29 |
} |
30 |
public FloatingMemoryView(IConfigPlugin config) : this() { this.AcceptedPlugin = config; } |
31 |
public FloatingMemoryView(IConfigPlugin config, Process process) : this() { this.AcceptedPlugin = config; this.AcceptedProcess = process; } |
32 |
#region IAcceptsProcess<Process> Members |
33 |
public Process AcceptedProcess { get { return MemView.AcceptedProcess; } set { MemView.AcceptedProcess = value; } } |
34 |
#endregion |
35 |
#region IAcceptsPlugin<IConfigPlugin> Members |
36 |
public IConfigPlugin AcceptedPlugin { get { return MemView.AcceptedPlugin; } set { MemView.AcceptedPlugin = value; } } |
37 |
#endregion |
38 |
#region IAcceptsMemoryRange members |
39 |
public int MemoryRangeStart { get { return MemView.MemoryRangeStart; } set { MemView.MemoryRangeStart = value; } } // set is empty in MemView, placed here incase it changes |
40 |
public uint MemoryRangeSize { get { return MemView.MemoryRangeSize; } set { MemView.MemoryRangeSize = value; } } // set is empty in MemView, placed here incase it changes |
41 |
#endregion |
42 |
|
43 |
#region IBrowseMemoryRegion |
44 |
public bool BrowseMemoryRegion(int MemoryRegion) { return MemView.BrowseMemoryRegion(MemoryRegion); } |
45 |
#endregion |
46 |
} |
47 |
} |