예제 #1
0
        /// <summary>
        /// Crear Nota
        /// </summary>
        /// <param name="title"></param>
        /// <param name="data"></param>
        /// <returns></returns>
        public async Task<bool> CreateNote(string title, string data)
        {
            bool valNote = false;
            try
            {
                string path = null;
                var conn = GetConnection(ref path);

                    TablaNota insertaNota = new TablaNota()
                    {
                        Titulo = title,
                        Dato = data,
                        Fecha = String.Format("{0:dd/MM/yyyy}", DateTime.Now),
                    };

                    await conn.InsertAsync(insertaNota);
                    valNote = true;
                
            }
            catch (Exception exception)
            {
                return false;
            }
            return valNote;
        }
예제 #2
0
        /// <summary>
        /// Eliminar Nota
        /// </summary>
        /// <param name="dataNotes"></param>
        /// <returns></returns>
        public bool RemoveNote(TablaNota dataNotes)
        {
            bool valNote = false;
            try
            {
                string path = null;
                var conn = GetConnection(ref path);
                conn.DeleteAsync(dataNotes);
                valNote = true;

            }
            catch (Exception)
            {
                return false;
            }

            return valNote;
        }
예제 #3
0
 private void ExecuteNotaSeleccionadaAsync(TablaNota obj) { }
예제 #4
0
 public  void EliminarNotaRapida(TablaNota dataNotes)
 {
    RemoverNota =  bdmanager.RemoveNote(dataNotes);
 }