bool PasteText(Topic topic, string text) { if (!string.IsNullOrEmpty(text)) { var ts = new TextSerializer(); var topics = ts.DeserializeTopic(text); if (topics != null && topics.Length > 0) { foreach (Topic ct in topics) { topic.Children.Add(ct); } PasteObjects = topics; AfterSelection = topics; } } return(true); }