private void SendDisclosuresButton_Click(object sender, EventArgs e)
        {
            DisclosuresUtilityConfig = DisclosuresHelper.PopulateDisclosuresUtilityConfig();

            var encompassDisclosuresList = GetEncompassDisclosuresList();

            if (encompassDisclosuresList != null)
            {
                SendDisclosures(encompassDisclosuresList);
            }
        }
        private void AnalyzeDisclosuresBtn_Click(object sender, EventArgs e)
        {
            PleaseWaitDialog waitDialog = null;

            try
            {
                DisclosuresUtilityConfig = DisclosuresHelper.PopulateDisclosuresUtilityConfig();

                var encompassDisclosuresList = GetEncompassDisclosuresList();

                if (encompassDisclosuresList == null)
                {
                    return;
                }

                waitDialog = new PleaseWaitDialog(emSendDisclosuresDialogForm);
                waitDialog.PleaseWaitForm.Hide();

                var disclosuresService  = InitDisclosuresManager(encompassDisclosuresList, waitDialog);
                var sanitizeDisclosures = disclosuresService.SanitizeDisclosures(false);

                var disclosuresAnalyzer = new DisclosuresAnalyzer(sanitizeDisclosures);
                var results             = disclosuresAnalyzer.AnalyzeDisclosures();

                waitDialog.PleaseWaitForm.Close();

                if (!Directory.Exists(@"c:\temp\DisclosureAnalyzer"))
                {
                    Directory.CreateDirectory(@"c:\temp\DisclosureAnalyzer");
                }

                string loanType      = EncompassApplication.CurrentLoan.Fields["1172"].UnformattedValue;
                string propertyState = EncompassApplication.CurrentLoan.Fields["14"].UnformattedValue;

                string output   = JsonConvert.SerializeObject(results, Formatting.Indented);
                string fileName =
                    $"C:\\temp\\DisclosureAnalysis_{EncompassApplication.CurrentLoan.LoanNumber}" +
                    $"_{propertyState}_{loanType}-{DateTime.Now:MM-dd-yyyy_hh-mm-tt}.json";

                File.WriteAllText(fileName, output);
                MessageBox.Show($"File saved!{Environment.NewLine + fileName}");
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.ToString());
            }
            finally
            {
                waitDialog.PleaseWaitForm.Close();
            }
        }
        public override void Login(object sender, EventArgs e)
        {
            FormWrapper.FormOpened += FormWrapper_FormOpened;

            DisclosuresUtilityConfig = DisclosuresHelper.PopulateDisclosuresUtilityConfig();
        }