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

Annotation of /trunk/RomCheater/Docking/FloatingMemoryView.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 323 - (hide annotations) (download)
Thu Jun 7 16:33:41 2012 UTC (8 years, 7 months ago) by william
File size: 2355 byte(s)
+ add event for being able to subscribe to PEReader updates

1 william 196 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 william 323 using Sojaner.MemoryScanner;
14 william 196
15     namespace RomCheater.Docking
16     {
17 william 243 public partial class FloatingMemoryView : DockContent,
18     IAcceptsPlugin<IConfigPlugin>,
19     IAcceptsProcess<Process>,
20 william 287 IAcceptsProcessAndConfig,
21     IBrowseMemoryRegion,
22 william 323 IAcceptsMemoryRange,
23     IAcceptPEData
24 william 196 {
25 william 198 public FloatingMemoryView() {
26     InitializeComponent();
27     this.AcceptedPlugin = null;
28     this.AcceptedProcess = null;
29 william 201 //this.MemoryStart = uint.MinValue;
30     //this.MemorySize = uint.MaxValue;
31 william 198 }
32 william 196 public FloatingMemoryView(IConfigPlugin config) : this() { this.AcceptedPlugin = config; }
33     public FloatingMemoryView(IConfigPlugin config, Process process) : this() { this.AcceptedPlugin = config; this.AcceptedProcess = process; }
34 william 237 #region IAcceptsProcess<Process> Members
35 william 198 public Process AcceptedProcess { get { return MemView.AcceptedProcess; } set { MemView.AcceptedProcess = value; } }
36 william 196 #endregion
37     #region IAcceptsPlugin<IConfigPlugin> Members
38 william 198 public IConfigPlugin AcceptedPlugin { get { return MemView.AcceptedPlugin; } set { MemView.AcceptedPlugin = value; } }
39 william 196 #endregion
40 william 206 #region IAcceptsMemoryRange members
41 william 287 public int MemoryRangeStart { get { return MemView.MemoryRangeStart; } set { MemView.MemoryRangeStart = value; } } // set is empty in MemView, placed here incase it changes
42     public uint MemoryRangeSize { get { return MemView.MemoryRangeSize; } set { MemView.MemoryRangeSize = value; } } // set is empty in MemView, placed here incase it changes
43 william 206 #endregion
44    
45 william 276 #region IBrowseMemoryRegion
46 william 287 public bool BrowseMemoryRegion(int MemoryRegion) { return MemView.BrowseMemoryRegion(MemoryRegion); }
47 william 206 #endregion
48 william 323
49     #region IAcceptPEData members
50     public void SetPEViewerData(PEReader.PEData peData) { MemView.SetPEViewerData(peData); }
51     #endregion
52 william 196 }
53     }

  ViewVC Help
Powered by ViewVC 1.1.22