/[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 889 - (hide annotations) (download)
Wed Sep 17 04:55:52 2014 UTC (7 years, 1 month ago) by william
File size: 1880 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 william 889 using RomCheater.Interfaces;
7 william 408
8 william 889 namespace Sojaner.MemoryScanner.Events
9 william 408 {
10    
11 william 679
12 william 408 #region OnBytesReadEventArgs
13     public interface IAcceptsBytesReadEvent
14     {
15     event BaseEventHandler<OnBytesReadEventArgs> OnBytesRead;
16     }
17     public interface IOnBytesReadEventArgs
18     {
19     object UserState { get; }
20     byte[] Data { get; }
21 william 575 ulong CurrentIndex { get; }
22     ulong TotalCount { get; }
23 william 446 bool Canceled { get; set; }
24 william 473 bool ReportProgress { get; }
25 william 408 };
26     public class OnBytesReadEventArgs : BaseEventArgs, IOnBytesReadEventArgs
27     {
28     public OnBytesReadEventArgs() : this(null) { }
29     public OnBytesReadEventArgs(object sender) : this(sender, null, new byte[] { }, 0, 1) { }
30 william 575 public OnBytesReadEventArgs(object sender, object userState, byte[] data, ulong currentIndex, ulong totalCount)
31 william 473 : this(sender, userState, data, currentIndex, totalCount, true) { }
32 william 575 public OnBytesReadEventArgs(object sender, object userState, byte[] data, ulong currentIndex, ulong totalCount, bool reportprogess)
33 william 408 : base(sender)
34     {
35     this.UserState = userState;
36     Data = data;
37     this.CurrentIndex = currentIndex;
38     this.TotalCount = totalCount;
39 william 473 this.ReportProgress = reportprogess;
40 william 408 }
41     #region OnBytesReadEventArgs members
42     public object UserState { get; private set; }
43     public byte[] Data { get; private set; }
44 william 575 public ulong CurrentIndex { get; private set; }
45     public ulong TotalCount { get; private set; }
46 william 446 public bool Canceled { get; set; }
47 william 473 public bool ReportProgress { get; private set; }
48 william 408 #endregion
49     }
50     #endregion
51     }

  ViewVC Help
Powered by ViewVC 1.1.22