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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 889 - (show annotations) (download)
Wed Sep 17 04:55:52 2014 UTC (7 years ago) by william
File size: 2373 byte(s)


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

  ViewVC Help
Powered by ViewVC 1.1.22