Пример #1
0
        private void ClientForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            SaveSpecialNotes(); //Всегда сохраняем Особые отметки

            // Освобождаем память от изображения
            if (pictureBox_ClientPhoto.Image != null)
            {
                pictureBox_ClientPhoto.Image.Dispose();
                pictureBox_ClientPhoto.Image = null;
            }

            PwdForm.LockPassword();

            UnsubscribeEvents();
            ClosingForm?.Invoke();
        }
Пример #2
0
        public void _12_DocsOut()
        {
            LaunchApplication(DesktopApps.Encompass); Launcher.Initialize().cmb_EnvironmentID_SelectByText(EnvironmentID).btn_Login_Click();

            AttachToProcess(Processes.Encompass, 5);

            Login.Initialize().Login_Username_SendKeys(DocFunder);

            Pipeline.Initialize().Pipeline_SelectCurrentLoan(LoanNumber);

            BorrowerInformationVesting.OpenForm_FromFormsTab().btn_BuildFinal_Click();

            ClosingForm.OpenForm_FromFormsTab().btn_DocsAddData_Click();

            ClosingTracking.OpenForm_FromFormsTab().txt_CD_Ordered_SetTodaysDate().txt_EarliestClosingDate_CopyField();

            RegZCD.OpenForm_FromFormsTab().txt_DocumentDate_SendKeys().txt_ClosingDate_SendKeys().txt_DocSigningDate_SendKeys().btn_Audit_Click();

            SelectPlanCode.Initialize().ClosingDocs_SelectPlanCode();

            SelectReportType.Initialize().rdb_Preview_Select().btn_OK_Click();

            ClosingDocsAudit.Initialize().cmb_OrderType_SelectByText("Pre-Closing").btn_OrderDocs_Click();

            SelectDocumentsClosing.Initialize().btn_Send_Click();

            SendDisclosuresClosing.Initialize().txt_BorrowerAuthorization_SendKeys(AuthorizationCode).btn_Send_Click();

            EncompassDialogCDSent.Initialize().btn_OK_Click();

            BaseSeleniumPage.CreateDriver(BaseSeleniumPage.WebDrivers.Chrome); BaseSeleniumPage.NavigateToURL(@"https://www.mortgage-application.net/myaccount/accountlogin.aspx");

            BorrowerLoanCenterLogIn.Initialize().txt_Email_SendKeys(BorrowerEmail).txt_Password_SendKeys(LoanCenterPassword).btn_Login_Click();

            CheckLoanStatus.Initialize().fn_SelectFirstRow(); LoanDetail.Initialize().btn_View_Click();

            VerifyIdentity.Initialize().txt_AuthorizationCode_SendKeys(AuthorizationCode).btn_Next_Click();

            DocuSign.Initialize().fn_ESignWholeDocument(); BaseSeleniumPage.CloseDriver();

            DocsOut.Open_FromLogTab().txt_PropertyInfoParcelNumber_SendKeys().chk_ReviewTasks_Check().chk_Finish_Check();
        }
Пример #3
0
        public void _09_ConditionsSent()
        {
            LaunchApplication(DesktopApps.Encompass); Launcher.Initialize().cmb_EnvironmentID_SelectByText(EnvironmentID).btn_Login_Click();

            AttachToProcess(Processes.Encompass, 5);

            Login.Initialize().Login_Username_SendKeys(LoanProcessor);

            EncompassMain.Initialize().Resize().tab_Pipeline_Select();

            Pipeline.Initialize().Pipeline_SelectCurrentLoan(LoanNumber);

            ClosingForm.OpenForm_FromFormsTab().btn_ProcessorAddData_Click().CompleteCurrentVesting().btn_ProcessorClicktoCertify_Click().cmb_IsFileReadyForUnderwriting_SendKeys("yes");

            AdditionalRequestsInformation.OpenForm_FromFormsTab().CompleteFields_HazardInsurance(); FloodInformation.OpenForm_FromFormsTab().CompleteFields_FloodCertification();

            URLA_Page2.OpenForm_FromFormsTab().cmb_MortgageType1_SendKeys("Mortgage"); MortgagePayoff.OpenForm_FromFormsTab().cmb_LenderName1_Select().txt_PrincipalBalance1_SendKeys("10,000");

            ClosingVendorInformation.Initialize().CompleteTitleEscrowFields();

            ConditionsSent.Open_FromLogTab().CompleteReqFields_DirectConvNoCashOutRefi().chk_Finish_Check();

            EncompassMain.Initialize().ExitEncompass(); EncompassDialog.Initialize().btn_Yes_Click(); ComplianceAlert.Initialize().btn_Close_Click(); TestedApplication.Kill();
        }
Пример #4
0
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     ClosingForm?.Invoke(this, EventArgs.Empty);
 }