ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater.PluginFramework/Events/IAcceptsMemoryAddress.cs
Revision: 287
Committed: Tue Jun 5 08:52:07 2012 UTC (10 years, 4 months ago) by william
File size: 1083 byte(s)
Log Message:

File Contents

# User Rev Content
1 william 206 using System;
2     using System.Collections.Generic;
3     using System.Linq;
4     using System.Text;
5    
6     namespace RomCheater.PluginFramework.Events
7     {
8 william 276 public interface IBrowseMemoryRegion
9 william 206 {
10 william 276 bool BrowseMemoryRegion(int MemoryRegion);
11 william 206 }
12 william 275
13     public interface IAcceptsBrowseMemoryRegion
14     {
15 william 287 event BaseEventHandler<BrowseMemoryRegionEvent> OnBrowseMemoryRegion;
16 william 275 }
17    
18     public interface IBrowseMemoryRegionEvent
19     {
20 william 276 int MemoryRegion { get; }
21 william 275 }
22     public class BrowseMemoryRegionEvent : BaseEventArgs, IBrowseMemoryRegionEvent
23     {
24     public BrowseMemoryRegionEvent() : this(0) { }
25     public BrowseMemoryRegionEvent(object sender) : this(0, sender) { }
26 william 276 public BrowseMemoryRegionEvent(int memoryRegion) : base() { this.MemoryRegion = memoryRegion; }
27     public BrowseMemoryRegionEvent(int memoryRegion, object sender) : base(sender) { this.MemoryRegion = memoryRegion; }
28 william 275 #region IBrowseMemoryRegionEvent members
29 william 276 public int MemoryRegion { get; private set; }
30 william 275 #endregion
31     }
32 william 206 }