/// <summary>
        /// Enters the "To" email address.
        /// </summary>
        /// <param name="emailAddresses">The "To" email addresses.</param>
        public void EnterToAddress(IEnumerable <string> emailAddresses)
        {
            foreach (string address in emailAddresses)
            {
                if (_controlPanel.WaitForDisplayedText("From", HP.DeviceAutomation.StringMatch.Contains, TimeSpan.FromSeconds(6)))
                {
                    string btnName = _executionManager.GetButtonName("cTo");

                    _controlPanel.Press(btnName);
                    _controlPanel.WaitForVirtualButton("cNewTouchButton");

                    _controlPanel.Press("cNewTouchButton");

                    Pacekeeper.Pause();

                    _controlPanel.TypeOnVirtualKeyboard(address);

                    Pacekeeper.Pause();

                    _controlPanel.Press(_executionManager.OkayButton);

                    _controlPanel.WaitForVirtualButton("cNOString");
                    _controlPanel.Press("cNOString");

                    _controlPanel.WaitForVirtualButton("cDoneTouchButton");
                    _controlPanel.Press("cDoneTouchButton");
                }
            }
        }
        /// <summary>
        /// Types the number of copies to print in the control panel
        /// </summary>
        /// <param name="copies"></param>
        public void SetNumCopies(int copies)
        {
            _executionManager.PressSolutionButton("Copy", _executionManager.JobSettingsButton);
            _executionManager.PressSolutionButton("Copy Menu", _executionManager.NumberOfCopiesButton);

            _controlPanel.TypeOnVirtualKeyboard(copies.ToString());
            Thread.Sleep(1000);
            _controlPanel.Press(_executionManager.OkayButton);
            Thread.Sleep(1000);
        }
示例#3
0
        /// <summary>
        /// Enters the name to use for the scanned file.
        /// </summary>
        /// <param name="fileName">The file name.</param>
        public void EnterFileName(string fileName)
        {
            _executionManager.PressSolutionButton("Scan to Network Folder", _executionManager.JobSettingsButton);
            _controlPanel.ScrollDown(50);

            _executionManager.PressSolutionButton("File Name Prefix", "cFilenamePrefix");
            _executionManager.DeleteFieldData();

            _controlPanel.TypeOnVirtualKeyboard(fileName);
            Thread.Sleep(1000);

            _controlPanel.Press(_executionManager.OkayButton);
            Thread.Sleep(1000);
        }