/[RomCheater]/trunk/Win32/Sojaner.MemoryScanner/Events.cs
ViewVC logotype

Annotation of /trunk/Win32/Sojaner.MemoryScanner/Events.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 408 - (hide annotations) (download)
Thu Jun 21 18:10:21 2012 UTC (9 years, 2 months ago) by william
File size: 2381 byte(s)

1 william 408 using System;
2     using System.Collections.Generic;
3     using System.Linq;
4     using System.Text;
5     using Sojaner.MemoryScanner;
6    
7     namespace RomCheater.PluginFramework.Events
8     {
9     #region PEViewerDataUpdatedEvent
10     public interface IAcceptPEData
11     {
12     void SetPEViewerData(IPEDData peData);
13     }
14     public interface IAcceptsPEData
15     {
16     event BaseEventHandler<PEViewerDataUpdatedEventArgs> OnPEDataUpdated;
17     }
18     public interface IPEViewerDataUpdatedEvent
19     {
20     IPEDData peData { get; }
21     }
22     public class PEViewerDataUpdatedEventArgs : BaseEventArgs, IPEViewerDataUpdatedEvent
23     {
24     public PEViewerDataUpdatedEventArgs() : this(PEData.Empty) { }
25     public PEViewerDataUpdatedEventArgs(object sender) : this(sender, PEData.Empty) { }
26     public PEViewerDataUpdatedEventArgs(IPEDData peData) : base() { this.peData = peData; }
27     public PEViewerDataUpdatedEventArgs(object sender, IPEDData peData) : base(sender) { this.peData = peData; }
28     #region IPEViewerDataUpdatedEvent members
29     public IPEDData peData { get; private set; }
30     #endregion
31     }
32     #endregion
33    
34     #region OnBytesReadEventArgs
35     public interface IAcceptsBytesReadEvent
36     {
37     event BaseEventHandler<OnBytesReadEventArgs> OnBytesRead;
38     }
39     public interface IOnBytesReadEventArgs
40     {
41     object UserState { get; }
42     byte[] Data { get; }
43     uint CurrentIndex { get; }
44     uint TotalCount { get; }
45     };
46     public class OnBytesReadEventArgs : BaseEventArgs, IOnBytesReadEventArgs
47     {
48     public OnBytesReadEventArgs() : this(null) { }
49     public OnBytesReadEventArgs(object sender) : this(sender, null, new byte[] { }, 0, 1) { }
50     public OnBytesReadEventArgs(object sender, object userState, byte[] data, uint currentIndex, uint totalCount)
51     : base(sender)
52     {
53     this.UserState = userState;
54     Data = data;
55     this.CurrentIndex = currentIndex;
56     this.TotalCount = totalCount;
57     }
58     #region OnBytesReadEventArgs members
59     public object UserState { get; private set; }
60     public byte[] Data { get; private set; }
61     public uint CurrentIndex { get; private set; }
62     public uint TotalCount { get; private set; }
63     #endregion
64     }
65     #endregion
66     }

  ViewVC Help
Powered by ViewVC 1.1.22