private void UpdatePasswordButton_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     if (m_oldPasswordTextBox.Password.IsNullOrBlank())
     {
         m_statusTextBlock.Text = "The old password must be specified.";
     }
     else if (m_newPasswordTextBox.Password.IsNullOrBlank())
     {
         m_statusTextBlock.Text = "The new password must be specified.";
     }
     else if (m_retypeNewPasswordTextBox.Password.IsNullOrBlank())
     {
         m_statusTextBlock.Text = "The retyped new password must be specified.";
     }
     else if (m_newPasswordTextBox.Password.Trim() != m_retypeNewPasswordTextBox.Password.Trim())
     {
         m_statusTextBlock.Text = "The new password did not match the retyped password.";
     }
     else
     {
         SetUpdateButtonsEnabled(false);
         UIHelper.SetText(m_statusTextBlock, "Updating password, please wait...");
         m_riaContext.ChangePassword(m_oldPasswordTextBox.Password.Trim(), m_newPasswordTextBox.Password.Trim(), UpdateCustomerPasswordComplete, null);
         ClearPasswordFields();
     }
 }