Exemple #1
0
        private Login GetLogin()
        {
            Login         login         = null;
            CRMAdminLogin crmAdminLogin = new CRMAdminLogin();

            login = new Login()
            {
                Credentials = GetFormUserCredentials(), Uri = GetFormUserUri()
            };
            return(login);
        }
Exemple #2
0
 private void SetLoginUserForm()
 {
     if (Environment.UserName.ToLower() == Project.PrincipalDeveloper.ToString())
     {
         CRMAdminLogin crmAdminLogin = new CRMAdminLogin();
         txtUser.Text     = crmAdminLogin.GetUser();
         txtPassword.Text = crmAdminLogin.GetPassword();
         txtURL.Text      = crmAdminLogin.GetURL();
     }
     else
     {
         txtUser.Text     = _registryHelper.ReadValueFromRegistry(Project.regUser.ToString());
         txtPassword.Text = _registryHelper.ReadValueFromRegistry(Project.regPassword.ToString());
         txtURL.Text      = _registryHelper.ReadValueFromRegistry(Project.regUrl.ToString());
     }
 }