123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- #region --------------- Copyright Dresser Wayne Pignone -------------
- #endregion
- using System;
- namespace Wayne.Lib
- {
-
-
-
- public enum WrongDeviceConnectionState
- {
- #region Fields
-
-
-
- NotDisconnected,
-
-
-
- NotConnecting,
-
-
-
- NotConnected,
-
-
-
- NotDisconnecting
- #endregion
- }
-
-
-
-
- public class ConnectableWrongStateException : Exception
- {
- #region Fields
- WrongDeviceConnectionState wrongState;
- #endregion
- #region Construction
-
-
-
- public ConnectableWrongStateException(WrongDeviceConnectionState wrongState) { this.wrongState = wrongState; }
-
-
-
- public ConnectableWrongStateException(WrongDeviceConnectionState wrongState, string message) : base(message) { this.wrongState = wrongState; }
-
-
-
- public ConnectableWrongStateException(WrongDeviceConnectionState wrongState, string message, Exception inner) : base(message, inner) { this.wrongState = wrongState; }
- #endregion
- #region Properties
-
-
-
- public WrongDeviceConnectionState WrongState
- {
- get { return wrongState; }
- }
- #endregion
- }
- }
|