Esempio n. 1
0
        //Function to choose an item in the listview thru an double-click.
        private void ButtonArtwork_Click(object sender, RoutedEventArgs e)
        {
            var item        = (sender as FrameworkElement).DataContext;
            var id          = ((Artwork)item).RowKey;
            var showPicture = new ShowPicture(id);

            this.Close();
            showPicture.Show();
        }
 //Function to choose an item in the listview thru an double-click.
 private void ButtonArtwork_Click(object sender, RoutedEventArgs e)
 {
     var item = (sender as FrameworkElement).DataContext;
     var id = ((Artwork)item).RowKey;
     var showPicture = new ShowPicture(id);
     this.Close();
     showPicture.Show();
 }