private void replybutton_clicked(object sender, EventArgs e)
{
item_generic i = (item_generic)(((Button)sender).Tag);
this.reply_id = (int)i.Tag;
this.is_reply = true;
log.WriteInteractionLog(26, "Reply id: " + reply_id + " ; Text: " + this.GetActiveTextBox().Text + "; object_type: " + _object_type + "; object_id: " + _object_id.ToString(), ((TouchEventArgs)e).TouchDevice);
reply_item.Background = Brushes.White;
reply_item.username.Text = "";
string text = configurations.GetTextBlockText2(i.username);
string[] texts = text.Split(new char[] { ':' });
reply_item.username.Inlines.Add(new Bold(new Run(texts[0] + ": ")));
reply_item.username.Inlines.Add(texts[1]);
reply_item.user_desc.Visibility = Visibility.Collapsed; //i.user_desc.Content = configurations.GetDate_Formatted(cig.comment.date);
reply_item.number.Text = i.number.Text; //i.number.Visibility = System.Windows.Visibility.Collapsed;
reply_item.number.FontSize = configurations.design_idea_item_user_info_font_size;
reply_item.desc.Visibility = Visibility.Collapsed;// i.desc.Content = "Commented:";
reply_item.topleft_panel.VerticalAlignment = VerticalAlignment.Top;
reply_item.top_panel.Margin = new Thickness(5, 10, 5, 10);
//reply_item.content.Text = i.content.Text;
reply_item.content.Visibility = System.Windows.Visibility.Collapsed;
//if (item_width != 0) i.Width = item_width + 2;
reply_item.avatar.Source = i.avatar.Source;
reply_item.Tag = i.Tag;
//reply_item.second_border.Margin = new Thickness(cig.level * 25, 0, 0, 0);
reply_item.first_border.BorderBrush = Brushes.Gray; reply_item.first_border.BorderThickness = new Thickness(3, 3, 3, 3);
reply_item.second_border.BorderBrush = Brushes.DarkGray; reply_item.second_border.BorderThickness = new Thickness(0, 0, 0, 0);
this.comment_textbox_reply.Text = comment_textbox_default.Text;
this.comment_textbox_reply.Foreground = comment_textbox_default.Foreground;
GotoReplyMode();
}