/[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 446 - (hide annotations) (download)
Sun Jun 2 19:52:03 2013 UTC (8 years, 4 months ago) by william
File size: 2462 byte(s)
+ fix search cancel/reset

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 william 446 bool Canceled { get; set; }
46 william 408 };
47     public class OnBytesReadEventArgs : BaseEventArgs, IOnBytesReadEventArgs
48     {
49     public OnBytesReadEventArgs() : this(null) { }
50     public OnBytesReadEventArgs(object sender) : this(sender, null, new byte[] { }, 0, 1) { }
51     public OnBytesReadEventArgs(object sender, object userState, byte[] data, uint currentIndex, uint totalCount)
52     : base(sender)
53     {
54     this.UserState = userState;
55     Data = data;
56     this.CurrentIndex = currentIndex;
57     this.TotalCount = totalCount;
58     }
59     #region OnBytesReadEventArgs members
60     public object UserState { get; private set; }
61     public byte[] Data { get; private set; }
62     public uint CurrentIndex { get; private set; }
63     public uint TotalCount { get; private set; }
64 william 446 public bool Canceled { get; set; }
65 william 408 #endregion
66     }
67     #endregion
68     }

  ViewVC Help
Powered by ViewVC 1.1.22