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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 838 - (show annotations) (download)
Tue Sep 16 00:57:18 2014 UTC (6 years, 9 months ago) by william
File size: 2400 byte(s)
+ add an icon resource

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

  ViewVC Help
Powered by ViewVC 1.1.22