예제 #1
0
        /// <summary>
        /// 登录
        /// </summary>
        public void Client_Login()
        {
            int Retcode = LoginVerify(User.UserName, User.Password);

            if (0 == Retcode)
            {
                try
                {
                    hostWindow.DialogResult = true;
                }
                catch (Exception e)
                {
                    hostWindow.Close();
                }
            }
            else
            {
                string errTxt = GetErrormsgFormCode(Retcode);
                return;
            }
        }