StateChangeEvent.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. //------------------------------------------------------------------------------
  2. // <copyright file="StateChangeEvent.cs" company="Microsoft">
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. // </copyright>
  5. // <owner current="true" primary="true">[....]</owner>
  6. // <owner current="true" primary="false">[....]</owner>
  7. //------------------------------------------------------------------------------
  8. namespace System.Data {
  9. using System;
  10. public sealed class StateChangeEventArgs : System.EventArgs {
  11. private ConnectionState originalState;
  12. private ConnectionState currentState;
  13. public StateChangeEventArgs(ConnectionState originalState, ConnectionState currentState) {
  14. this.originalState = originalState;
  15. this.currentState = currentState;
  16. }
  17. public ConnectionState CurrentState {
  18. get {
  19. return this.currentState;
  20. }
  21. }
  22. public ConnectionState OriginalState {
  23. get {
  24. return this.originalState;
  25. }
  26. }
  27. }
  28. }