| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //-----------------------------------------------------------------------------
- // OperationCompletedEventArgs.cs
- //
- // Microsoft XNA Community Game Platform
- // Copyright (C) Microsoft Corporation. All rights reserved.
- //-----------------------------------------------------------------------------
- using System;
- namespace NetRumble
- {
- /// <summary>
- /// Custom EventArgs class used by the NetworkBusyScreen.OperationCompleted event.
- /// </summary>
- /// <remarks>Based on a class in the Network Game State Management sample.</remarks>
- class OperationCompletedEventArgs : EventArgs
- {
- /// <summary>
- /// Gets or sets the IAsyncResult associated with
- /// the network operation that has just completed.
- /// </summary>
- public IAsyncResult AsyncResult
- {
- get { return asyncResult; }
- set { asyncResult = value; }
- }
- IAsyncResult asyncResult;
- /// <summary>
- /// Constructs a new event arguments class.
- /// </summary>
- public OperationCompletedEventArgs(IAsyncResult asyncResult)
- {
- this.asyncResult = asyncResult;
- }
- }
- }
|