private void ChgPwdWindow_Closing(object e) { PasswordReset oChangePassword = System.Windows.Application.Current.Windows.OfType <PasswordReset>().FirstOrDefault(); if (oChangePassword != null) { if (oChangePassword.pwdBoxConfirmPassword != null) { oChangePassword.pwdBoxConfirmPassword.Password = string.Empty; } if (oChangePassword.pwdBoxNewPassword != null) { oChangePassword.pwdBoxNewPassword.Password = string.Empty; } if (oChangePassword.pwdBoxOldPassword != null) { oChangePassword.pwdBoxOldPassword.Password = string.Empty; } oChangePassword.Hide(); } //Windows_CHPasswordLocationChanged(e); //if (oOldPasswordBox != null) //{ if (!string.IsNullOrEmpty(oOldPasswordBox.Password)) // { oOldPasswordBox.Password = string.Empty; } //} //if(oNewPasswordBox != null) //{ // if (!string.IsNullOrEmpty(oNewPasswordBox.Password)) // { oNewPasswordBox.Password = string.Empty; } //} ////oNewPasswordBox.Password = string.Empty; //if (oConfirmPwdBox != null) //{ // if (!string.IsNullOrEmpty(oConfirmPwdBox.Password) ) // { // oConfirmPwdBox.Password = string.Empty; // } //} ReplyTextBox = string.Empty; }