public async void actualizarButton_Clicked(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(nombresEntry.Text))
            {
                await DisplayAlert("Error", "Debe ingresar nombres", "Aceptar");
                nombresEntry.Focus();
                return;
            }

            if (string.IsNullOrWhiteSpace(apellidosEntry.Text))
            {
                await DisplayAlert("Error", "Debe ingresar apellidos", "Aceptar");
                apellidosEntry.Focus();
                return;
            }

            if (string.IsNullOrEmpty(gradoEntry.Text))
            {
                await DisplayAlert("Error", "Debe ingresar salario", "aceptar");
                gradoEntry.Focus();
                return;
            }

            Estudiante estu = new Estudiante
            {
                IDestudiante = this.estudent.IDestudiante,
                Activo = activoSwitch.IsToggled,
                Apellido = apellidosEntry.Text,
                Fechana = fechanacimientoDatePicker.Date,
                Nombre = nombresEntry.Text,
                Grado = gradoEntry.Text,
            };

            using (var datos = new DateAccess())
            {
                datos.UpdateEstudiante(estu);
            }

            await DisplayAlert("Confirmación", "Estudiante actualizado correctamente", "Aceptar");
            await Navigation.PushAsync(new Homepg());
        }