OperationCompletedEventArgs.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //-----------------------------------------------------------------------------
  2. // OperationCompletedEventArgs.cs
  3. //
  4. // Microsoft XNA Community Game Platform
  5. // Copyright (C) Microsoft Corporation. All rights reserved.
  6. //-----------------------------------------------------------------------------
  7. using System;
  8. namespace CatapultGame
  9. {
  10. /// <summary>
  11. /// Custom EventArgs class used by the NetworkBusyScreen.OperationCompleted event.
  12. /// </summary>
  13. class OperationCompletedEventArgs : EventArgs
  14. {
  15. /// <summary>
  16. /// Gets or sets the IAsyncResult associated with
  17. /// the network operation that has just completed.
  18. /// </summary>
  19. public IAsyncResult AsyncResult
  20. {
  21. get { return asyncResult; }
  22. set { asyncResult = value; }
  23. }
  24. IAsyncResult asyncResult;
  25. /// <summary>
  26. /// Constructs a new event arguments class.
  27. /// </summary>
  28. public OperationCompletedEventArgs(IAsyncResult asyncResult)
  29. {
  30. this.asyncResult = asyncResult;
  31. }
  32. }
  33. }