123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using System;
- namespace PaintDotNet
- {
- public sealed class IOEventArgs
- : EventArgs
- {
- /// <summary>
- /// Whether we are reporting a Read or Write operation.
- /// </summary>
- private IOOperationType ioOperationType;
- public IOOperationType IOOperationType
- {
- get
- {
- return ioOperationType;
- }
- }
- /// <summary>
- /// The offset within the file that the operation is to begin, or has finished, at.
- /// </summary>
- private long position;
- public long Position
- {
- get
- {
- return position;
- }
- }
- /// <summary>
- /// The number of bytes that were read or written.
- /// </summary>
- private int count;
- public int Count
- {
- get
- {
- return count;
- }
- }
- public IOEventArgs(IOOperationType ioOperationType, long position, int count)
- {
- this.ioOperationType = ioOperationType;
- this.position = position;
- this.count = count;
- }
- }
- }
|