public void like_touched(object sender, TouchEventArgs te)
{
this.num_likes.Content = (Convert.ToInt32(this.num_likes.Content) + 1).ToString();
Feedback f = new Feedback();
f.note = "true"; f.date = DateTime.Now; f.type_id = 2; f.user_id = 0; f.parent_id = 0;
f.object_type = "nature_net.Contribution"; f.object_id = Convert.ToInt32(this.Tag);
database_manager.InsertFeedback(f);
window_manager.load_design_ideas_sync();
te.Handled = true;
if (sender == null)
log.WriteInteractionLog(12, "item: " + this.ToString(), te.TouchDevice);
else
log.WriteInteractionLog(13, "item: " + this.ToString(), te.TouchDevice);
}