Esempio n. 1
0
 private void articlesListView_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     ListView lv = sender as ListView;
     Article ar = lv.SelectedItem as Article;
     openArticle = new OpenArticle(ar);
     openArticle.Show();
 }
Esempio n. 2
0
 private void resListView_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     CommArt commArt = resListView.SelectedItem as CommArt;
     if (commArt == null)
     {
         Article art = resListView.SelectedItem as Article;
         openArticle = new OpenArticle(art.Id);
         openArticle.Show();
     }
     else
     {
         openArticle = new OpenArticle(commArt.Art_id);
         openArticle.Show();
     }
 }