コード例 #1
0
        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");
            }
        }
コード例 #2
0
 //---------------------------------------------------------------------------------
 // Insertar datos en la tabla.
 public void InsertDataExample(tableExample modelo)
 {
     cnn.Insert(modelo);
 }