123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #region File Description
- //-----------------------------------------------------------------------------
- // OperationCompletedEventArgs.cs
- //
- // Microsoft XNA Community Game Platform
- // Copyright (C) Microsoft Corporation. All rights reserved.
- //-----------------------------------------------------------------------------
- #endregion
- #region Using Statements
- using System;
- #endregion
- 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
- {
- #region Properties
- /// <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;
- #endregion
- #region Initialization
- /// <summary>
- /// Constructs a new event arguments class.
- /// </summary>
- public OperationCompletedEventArgs(IAsyncResult asyncResult)
- {
- this.asyncResult = asyncResult;
- }
- #endregion
- }
- }
|