Ejemplo n.º 1
0
        private string GetSmgrPassword()
        {
            string smgrPassword;

            try
            {
                var ds          = _jurisUtility.ExecuteSql(0, Resources.SqlGetSmgrPassword);
                var empPassword = ds.Tables["Table"].Rows[0]["EmpPassword"] as string;
                smgrPassword = empPassword == "smgr" ? "smgr" : _jurisUtility.Encrypt(empPassword, @"Athens");
            }
            catch (Exception exception)
            {
                MessageBox.Show(this, exception.Message, @"Error getting SMGR password", MessageBoxButtons.OK,
                                MessageBoxIcon.Error);
                smgrPassword = @"error";
            }

            return(smgrPassword);
        }