private void ButtonSave_Clicked(object sender, EventArgs e) { if (!string.IsNullOrEmpty(EntrySave.Text)) { tableExample modelo = new tableExample() { Label = EntrySave.Text }; db.InsertDataExample(modelo); EntrySave.Text = ""; } else { DisplayAlert("Error", "el campo debe contener datos para ser guardados.", "OK"); } }
//--------------------------------------------------------------------------------- // Insertar datos en la tabla. public void InsertDataExample(tableExample modelo) { cnn.Insert(modelo); }