OperationCompletedEventArgs.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 NetRumble
  9. {
  10. /// <summary>
  11. /// Custom EventArgs class used by the NetworkBusyScreen.OperationCompleted event.
  12. /// </summary>
  13. /// <remarks>Based on a class in the Network Game State Management sample.</remarks>
  14. class OperationCompletedEventArgs : EventArgs
  15. {
  16. /// <summary>
  17. /// Gets or sets the IAsyncResult associated with
  18. /// the network operation that has just completed.
  19. /// </summary>
  20. public IAsyncResult AsyncResult
  21. {
  22. get { return asyncResult; }
  23. set { asyncResult = value; }
  24. }
  25. IAsyncResult asyncResult;
  26. /// <summary>
  27. /// Constructs a new event arguments class.
  28. /// </summary>
  29. public OperationCompletedEventArgs(IAsyncResult asyncResult)
  30. {
  31. this.asyncResult = asyncResult;
  32. }
  33. }
  34. }