private void SelectedItem(object sender, MouseButtonEventArgs e) { var index = listBox1.SelectedIndex; var newStory = new NewArticle(); newStory.brzr.Navigate(articlesParsed.articles[index].url.ToString()); newStory.Show(); }
private void SelectedItem(object sender, MouseButtonEventArgs e) { for (int i = 0; i < articlesParsed.articles.Count(); i++) { if ((string)listBox1.SelectedItem == articlesParsed.articles[i].title.ToString()) { var newStory = new NewArticle(); newStory.brzr.Navigate(articlesParsed.articles[i].url.ToString()); newStory.Show(); index = i; } } }