Esempio n. 1
0
        private void Delete_Click(object sender, EventArgs e)
        {
            var clickDeleteButton            = (Button)sender;
            int position                     = (int)clickDeleteButton.Tag;
            CommentPropertiesdb PostToDelete = Items[position];
            dbService           db           = new dbService();

            db.DeletePost(PostToDelete);
            this.Items = db.GetAllPosts().ToList();
            NotifyDataSetChanged();
        }