public int DeleteItem(t_memos item)
 {
     lock (Locker)
     {
         _db.Delete(item);
         return(item.id);
     }
 }
 public int SaveItem(t_memos item)
 {
     lock (Locker)
     {
         if (item.id != 0)
         {
             _db.Update(item);
             return(item.id);
         }
         return(_db.Insert(item));
     }
 }
        private void AddButton_Click(object sender, EventArgs e)
        {
            var item = new t_memos {
                memo = editText.Text
            };

            _db.SaveItem(item);
            editText.Text = "";

            DepictionMemoListInit();

            NtfUpdate();
        }