Пример #1
0
        private void EmailFormInput()
        {
            int offSet           = OxpdBrowserEngine.GetBrowserOffset(_controlPanel);
            int emailPanelBottom = _engine.GetBottomLocationById("inputForm");//_engine.GetBoundingAreaById("inputForm").Bottom + offSet;

            // The to address is being set by the server. I'm just commenting this out
            // in case we decide to do something different...
            //SetTextboxValue("to", _emailToAddress);

            int screenOffset = 150;
            int bottomOffset = 100;

            if (_controlPanel.GetScreenSize().Width.Equals(480))
            {
                screenOffset = 10;
                bottomOffset = 3;
            }

            int location = _engine.GetBottomLocationById("subject");

            if (location > emailPanelBottom)
            {
                SwipeScreen(offSet + screenOffset, emailPanelBottom - bottomOffset);
            }
            SetTextboxValue("subject", "Scanning via AutoStore " + ExecutionOptions.AutoStoreWorkflow);

            location = _engine.GetBottomLocationById("message");
            if (location > emailPanelBottom)
            {
                SwipeScreen(offSet + screenOffset, emailPanelBottom - bottomOffset);
            }
            SetTextboxValue("message", "User " + EmailToAddress + " is utilizing AutoStore Email.");

            location = _engine.GetBottomLocationById("filename");
            if (location > emailPanelBottom)
            {
                SwipeScreen(offSet + screenOffset, emailPanelBottom - bottomOffset);
            }
            SetTextboxValue("filename", DocumentName);
        }