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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 477 - (show annotations) (download)
Mon Jun 3 18:35:45 2013 UTC (7 years, 4 months ago) by william
File size: 2350 byte(s)
revert r471: pass process informatin by using the process's PID, instead of passing the process as a reference

+ pass the process instead
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 using Sojaner.MemoryScanner;
14
15 namespace RomCheater.Docking
16 {
17 public partial class FloatingMemoryView : DockContent,
18 IAcceptsPlugin<IConfigPlugin>,
19 IAcceptsProcess<Process>,
20 IAcceptsProcessAndConfig,
21 IBrowseMemoryRegion,
22 IAcceptsMemoryRange,
23 IAcceptPEData
24 {
25 public FloatingMemoryView() {
26 InitializeComponent();
27 this.AcceptedPlugin = null;
28 this.AcceptedProcess = null;
29 //this.MemoryStart = uint.MinValue;
30 //this.MemorySize = uint.MaxValue;
31 }
32 public FloatingMemoryView(IConfigPlugin config) : this() { this.AcceptedPlugin = config; }
33 public FloatingMemoryView(IConfigPlugin config, Process process) : this() { this.AcceptedPlugin = config; this.AcceptedProcess = process; }
34 #region IAcceptsProcess<Process> Members
35 public Process AcceptedProcess { get { return MemView.AcceptedProcess; } set { MemView.AcceptedProcess = value; } }
36 #endregion
37 #region IAcceptsPlugin<IConfigPlugin> Members
38 public IConfigPlugin AcceptedPlugin { get { return MemView.AcceptedPlugin; } set { MemView.AcceptedPlugin = value; } }
39 #endregion
40 #region IAcceptsMemoryRange members
41 public uint 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 #endregion
44
45 #region IBrowseMemoryRegion
46 public bool BrowseMemoryRegion(uint MemoryRegion) { return MemView.BrowseMemoryRegion(MemoryRegion); }
47 #endregion
48
49 #region IAcceptPEData members
50 public void SetPEViewerData(IPEDData peData) { MemView.SetPEViewerData(peData); }
51 #endregion
52 }
53 }

  ViewVC Help
Powered by ViewVC 1.1.22