Exemple #1
0
        public static bool GetLoginCredentials(SSBIServer srv)
        {
            bool res = true;

            if (!srv.HasLoggedIn)
            {
                res = false;
                login frmLogin = new login(srv);
                if (frmLogin.ShowDialog() == DialogResult.OK)
                {
                    srv.Authentication = (SSBServerAuthentication)frmLogin.srv_cboAuth.SelectedItem;
                    if (srv.Authentication == SSBServerAuthentication.Mixed)
                    {
                        srv.UserId   = frmLogin.srv_txtUid.Text;
                        srv.Password = frmLogin.srv_txtPwd.Text;
                    }
                    res = true;
                }

                frmLogin.Dispose();
            }
            return(res);
        }
Exemple #2
0
        public static bool GetLoginCredentials(SSBIServer srv)
        {
            bool res = true;
              if (!srv.HasLoggedIn) {
            res = false;
            login frmLogin = new login(srv);
            if (frmLogin.ShowDialog() == DialogResult.OK) {
              srv.Authentication = (SSBServerAuthentication)frmLogin.srv_cboAuth.SelectedItem;
              if (srv.Authentication == SSBServerAuthentication.Mixed) {
            srv.UserId = frmLogin.srv_txtUid.Text;
            srv.Password = frmLogin.srv_txtPwd.Text;
              }
              res = true;

            }

            frmLogin.Dispose();
              }
              return res;
        }