using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NTwain { /// /// The logical state of a TWAIN session. /// public enum State { /// /// The starting state, corresponds to state 1. /// DsmUnloaded = 1, /// /// The DSM library has been loaded, corresponds to state 2. /// DsmLoaded = 2, /// /// The DSM has been opened, corresponds to state 3. /// DsmOpened = 3, /// /// A data source has been opened, corresponds to state 4. /// SourceOpened = 4, /// /// A data source has been enabled, corresponds to state 5. /// SourceEnabled = 5, /// /// Data is ready for transfer from the source, corresponds to state 6. /// TransferReady = 6, /// /// Data is being transferred, corresponds to state 7. /// Transferring = 7 }; }