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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 287 - (hide annotations) (download)
Tue Jun 5 08:52:07 2012 UTC (8 years, 7 months ago) by william
File size: 2142 byte(s)

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    
14     namespace RomCheater.Docking
15     {
16 william 243 public partial class FloatingMemoryView : DockContent,
17     IAcceptsPlugin<IConfigPlugin>,
18     IAcceptsProcess<Process>,
19 william 287 IAcceptsProcessAndConfig,
20     IBrowseMemoryRegion,
21     IAcceptsMemoryRange
22 william 196 {
23 william 198 public FloatingMemoryView() {
24     InitializeComponent();
25     this.AcceptedPlugin = null;
26     this.AcceptedProcess = null;
27 william 201 //this.MemoryStart = uint.MinValue;
28     //this.MemorySize = uint.MaxValue;
29 william 198 }
30 william 196 public FloatingMemoryView(IConfigPlugin config) : this() { this.AcceptedPlugin = config; }
31     public FloatingMemoryView(IConfigPlugin config, Process process) : this() { this.AcceptedPlugin = config; this.AcceptedProcess = process; }
32 william 237 #region IAcceptsProcess<Process> Members
33 william 198 public Process AcceptedProcess { get { return MemView.AcceptedProcess; } set { MemView.AcceptedProcess = value; } }
34 william 196 #endregion
35     #region IAcceptsPlugin<IConfigPlugin> Members
36 william 198 public IConfigPlugin AcceptedPlugin { get { return MemView.AcceptedPlugin; } set { MemView.AcceptedPlugin = value; } }
37 william 196 #endregion
38 william 206 #region IAcceptsMemoryRange members
39 william 287 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 william 206 #endregion
42    
43 william 276 #region IBrowseMemoryRegion
44 william 287 public bool BrowseMemoryRegion(int MemoryRegion) { return MemView.BrowseMemoryRegion(MemoryRegion); }
45 william 206 #endregion
46 william 196 }
47     }

  ViewVC Help
Powered by ViewVC 1.1.22