Exemplo n.º 1
0
        public void guardarNota()
        {
            objNotas                   = new MisNotas();
            objNotas.Titulo            = tituloNota.Text;
            objNotas.Contenido         = nuevaNota.Text;
            objNotas.FechaNota         = DateTime.Now;
            objNotas.FechaModificacion = DateTime.Now;
            objNotas.Recordatorio      = DateTime.Now;
            objNotas.IdColor           = color;
            objNotas.IdFont            = font;

            int i = MisNotasDb.GuardarNota(objNotas);

            if (i > 0)
            {
                Toast.MakeText(this, "Nota Registrada", ToastLength.Long).Show();
            }
            else
            {
                Toast.MakeText(this, "Error en Guardar", ToastLength.Long).Show();
            }
        }