private void ChangeSelectedTag(object sender, RoutedEventArgs e) { var term = sender == previousTagButton ? TagCloudNavigationSession.CurrentSession().GetPreviousTerm() : TagCloudNavigationSession.CurrentSession().GetNextTerm(); CreateTagCloud(new [] { term }); }
private void TagCloudPopUp(object sender, RoutedEventArgs e) { var text = searchBox.Text; if (string.IsNullOrWhiteSpace(text)) { CreateTagCloud(new string[] {}); } else { TagCloudNavigationSession.CreateNewSession(text); CreateTagCloud(new [] { TagCloudNavigationSession. CurrentSession().GetNextTerm() }); } }
public static void CreateNewSession(String query) { session = new TagCloudNavigationSession(query); }