OperationCompletedEventArgs.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 NetworkStateManagement
  13. {
  14. /// <summary>
  15. /// Custom EventArgs class used by the NetworkBusyScreen.OperationCompleted event.
  16. /// </summary>
  17. class OperationCompletedEventArgs : EventArgs
  18. {
  19. #region Properties
  20. /// <summary>
  21. /// Gets or sets the IAsyncResult associated with
  22. /// the network operation that has just completed.
  23. /// </summary>
  24. public IAsyncResult AsyncResult
  25. {
  26. get { return asyncResult; }
  27. set { asyncResult = value; }
  28. }
  29. IAsyncResult asyncResult;
  30. #endregion
  31. #region Initialization
  32. /// <summary>
  33. /// Constructs a new event arguments class.
  34. /// </summary>
  35. public OperationCompletedEventArgs(IAsyncResult asyncResult)
  36. {
  37. this.asyncResult = asyncResult;
  38. }
  39. #endregion
  40. }
  41. }