private void Scanner_Error(object sender, HWErrorEventArgs e)
        {
            var errors = new List <AnalyzeImageResultType>
            {
                AnalyzeImageResultType.ScannerError
            };
            var eArgs = new AnalyzeCompletedEventArgs(DeviceType.Scanner, errors)
            {
                Message = e.Message
            };

            ScannerState.ErrorsList   = errors;
            ScannerState.ErrorMessage = e.Message;
            ScannerState = ScannerState.ChangeState();

            ScanProcessErrors(this, eArgs);
        }
 public void ChangeScannerState()
 {
     ScannerState = ScannerState.ChangeState();
 }