private void btnSavemenager_Click(object sender, RoutedEventArgs e) { if (IsRegistrationUserMenagerEnabled()) { register.SaveUserExecute(txtPassword.Password, txtBackupPassword.Password); } else { MessageBox.Show("You have not filled in all required fields"); } }