* DataColumn.cs: In Expression setter, set the expression member even if
[mono.git] / mcs / class / System.Data / System.Data / StateChangeEventArgs.cs
1 //
2 // System.Data.StateChangeEventArgs.cs
3 //
4 // Author:
5 //   Rodrigo Moya (rodrigo@ximian.com)
6 //   Daniel Morgan (danmorg@sc.rr.com)
7 //   Tim Coleman (tim@timcoleman.com)
8 //
9 // (C) Ximian, Inc 2002
10 // Copyright (C) Tim Coleman, 2002
11 //
12
13 using System;
14
15 namespace System.Data {
16         public sealed class StateChangeEventArgs : EventArgs 
17         {
18                 #region Fields
19
20                 ConnectionState originalState;
21                 ConnectionState currentState;
22
23                 #endregion // Fields
24
25                 #region Constructors
26
27                 public StateChangeEventArgs (ConnectionState originalState, ConnectionState currentState)
28                 {
29                         this.originalState = originalState;
30                         this.currentState = currentState;
31                 }
32
33                 #endregion // Constructors
34
35                 #region Properties
36
37                 public ConnectionState CurrentState {
38                         get { return currentState; }
39                 }
40
41                 public ConnectionState OriginalState {
42                         get { return originalState; }
43                 }
44
45                 #endregion // Properties
46         }
47 }