/// <summary>
        /// Launches the Network Folder application on the device.
        /// </summary>
        public void Launch()
        {
            try
            {
                _controlPanel.Press("cScanHomeTouchButton");
                if (_controlPanel.WaitForDisplayedText("Scan Menu", TimeSpan.FromSeconds(1)))
                {
                    _controlPanel.Press("cScanToNetworkFolder");
                }

                Pacekeeper.Pause();
            }
            catch (PhoenixInvalidOperationException ex)
            {
                throw new DeviceWorkflowException($"Could not launch Select network folder page: {ex.Message}", ex);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Executes the currently configured scan job.
        /// </summary>
        /// <param name="scanForm">The scan form.</param>
        /// <returns><c>true</c> if the job finishes (regardless of its ending status), <c>false</c> otherwise.</returns>
        public bool ExecuteScanJob(string scanForm)
        {
            bool done = false;

            try
            {
                if (_controlPanel.WaitForDisplayedText(scanForm, TimeSpan.FromSeconds(1)))
                {
                    _controlPanel.Press("cScanTouchButton");
                    RecordEvent(DeviceWorkflowMarker.ScanJobBegin);
                    Thread.Sleep(TimeSpan.FromSeconds(25));
                    done = true;
                }
            }
            catch (PhoenixInvalidOperationException ex)
            {
                throw new DeviceWorkflowException($"Could not start job: {ex.Message}");
            }

            return(done);
        }
        /// <summary>
        /// Launches the Email application on the device.
        /// </summary>
        public void Launch()
        {
            try
            {
                _controlPanel.Press("cScanHomeTouchButton");

                if (_controlPanel.WaitForDisplayedText("Scan Menu", TimeSpan.FromSeconds(1)))
                {
                    _controlPanel.Press("cEmailUiEmailDocument");
                }

                Pacekeeper.Pause();

                if (_controlPanel.WaitForDisplayedText("Scan to E-mail", TimeSpan.FromSeconds(1)))
                {
                    _controlPanel.Press("cSendAnEmail");
                }
            }
            catch (PhoenixInvalidOperationException ex)
            {
                throw new DeviceWorkflowException($"Could not launch Email application: {ex.Message}", ex);
            }
        }