private void btnLastStep_Click(object sender, EventArgs e) { this.Hide(); PersonalAssets bindStep2Form = new PersonalAssets(UserID, UserName, Password, BindAsset); bindStep2Form.ShowDialog(); this.Close(); }
private void btnNextStep_Click(object sender, EventArgs e) { string userName = txtUser.Text.Trim(); string password = txtPassword.Text.Trim(); if (string.IsNullOrWhiteSpace(userName)) { //MessageBox.Show("请输入用户名。", "提示信息"); MessageBox.Show(ResourceCulture.GetString("GeneralMsg_EmptyUser"), ResourceCulture.GetString("GeneralTitle_Prompt")); return; } else if (string.IsNullOrWhiteSpace(password)) { //MessageBox.Show("请输入密码信息。", "提示信息"); MessageBox.Show(ResourceCulture.GetString("GeneralMsg_EmptyPwd"), ResourceCulture.GetString("GeneralTitle_Prompt")); return; } try { //UserBLL userBll = new UserBLL(); BDOSecurityPortalModel.UserProfile userProfile = new BDOSecurityPortalModel.UserProfile(); string loginUserId = string.Empty; string loginMessage = string.Empty; bool loginResult = EoopService.LoginVerify(userName, password, out loginUserId, out loginMessage); if (!loginResult) { MessageBox.Show(loginMessage, ResourceCulture.GetString("LoginMsg_Title")); return; } this.Hide(); PersonalAssets bindStep2Form = new PersonalAssets(loginUserId, userName, password); bindStep2Form.ShowDialog(); this.Close(); } catch (Exception ex) { string exMessage = ResourceCulture.GetString("GeneralMsg_AppException"); if (Program.ReleaseType == "DEBUG") { exMessage = ex.Message + ex.StackTrace; } MessageBox.Show(exMessage, ResourceCulture.GetString("LoginMsg_Title")); } }