Exemplo n.º 1
0
        public async void ActualizarButton_Clicked(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(NombreEntry.Text))
            {
                await DisplayAlert("Error", "Debe ingresar nombres", "Aceptar");

                NombreEntry.Focus();
                return;
            }

            Song _song = new Song
            {
                Id   = song.Id,
                Name = NombreEntry.Text,
                Text = TextEntry.Text
            };

            using (var datos = new DataAccess())
            {
                datos.UpdateSong(_song);
            }
            NombreEntry.Text = string.Empty;
            TextEntry.Text   = string.Empty;
            await DisplayAlert("Mensaje", "Cancion actualizada correctamente", "Aceptar");

            await Navigation.PushAsync(new HomePage());
        }
Exemplo n.º 2
0
 private void pictureBox2_Click(object sender, EventArgs e)
 {
     NombreEntry.Enabled = true;
     NombreEntry.Focus();
     button2.Visible     = true;
     pictureBox2.Visible = false;
 }
Exemplo n.º 3
0
 private void NameEdit_Click(object sender, EventArgs e)
 {
     NombreEntry.Enabled = true;
     NombreEntry.Focus();
     button2.Visible  = true;
     NameEdit.Visible = false;
 }