2
0

OperationCompletedEventArgs.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #region File Description
  2. //-----------------------------------------------------------------------------
  3. // OperationCompletedEventArgs.cs
  4. //
  5. // Microsoft XNA Community Game Platform
  6. // Copyright (C) Microsoft Corporation. All rights reserved.
  7. //-----------------------------------------------------------------------------
  8. #endregion
  9. #region Using Statements
  10. using System;
  11. #endregion
  12. namespace NetRumble
  13. {
  14. /// <summary>
  15. /// Custom EventArgs class used by the NetworkBusyScreen.OperationCompleted event.
  16. /// </summary>
  17. /// <remarks>Based on a class in the Network Game State Management sample.</remarks>
  18. class OperationCompletedEventArgs : EventArgs
  19. {
  20. #region Properties
  21. /// <summary>
  22. /// Gets or sets the IAsyncResult associated with
  23. /// the network operation that has just completed.
  24. /// </summary>
  25. public IAsyncResult AsyncResult
  26. {
  27. get { return asyncResult; }
  28. set { asyncResult = value; }
  29. }
  30. IAsyncResult asyncResult;
  31. #endregion
  32. #region Initialization
  33. /// <summary>
  34. /// Constructs a new event arguments class.
  35. /// </summary>
  36. public OperationCompletedEventArgs(IAsyncResult asyncResult)
  37. {
  38. this.asyncResult = asyncResult;
  39. }
  40. #endregion
  41. }
  42. }