private void btnInsertar_Click(object sender, RoutedEventArgs e)
        {
            bool error = false;

            if (!usuarioValido())
            {
                txtUsuario.Focus();
                error = true;
            }
            if (!nombreValido())
            {
                txtNombre.Focus();
                error = true;
            }
            if (!apellidosValido())
            {
                txtApellidos.Focus();
                error = true;
            }
            if (!emailValido())
            {
                txtEmail.Focus();
                error = true;
            }

            if (!error)
            {
                string nombre    = txtNombre.Text;
                string apellidos = txtApellidos.Text;
                string usuario   = txtUsuario.Text;
                string email     = txtEmail.Text;
                int    rol       = cbRol.SelectedItem.ToString() ==
                                   "Administrador" ? 1000 : 1001;
                string imagePath = pbImage.Source.ToString();

                if (listaUsuarios.Añadir(usuario, email, nombre, apellidos,
                                         rol, imagePath) != 0)
                {
                    status.Foreground = new SolidColorBrush(Colors.Green);
                    status.Text       = "Insercion correcta     Durante el primer inicio tu contraseña será igual al correo";

                    mostrarUsuarios();

                    txtNombre.Clear();
                    txtApellidos.Clear();
                    txtUsuario.Clear();
                    txtEmail.Clear();
                    cbRol.SelectedIndex = 0;
                    pbImage.Source      = new BitmapImage(new Uri("imgs/No-image-available.jpg", UriKind.Relative));
                }
                else
                {
                    status.Foreground = new SolidColorBrush(Colors.Red);
                    status.Text       = "Problemas en la insercion";
                }
            }
        }