Ejemplo n.º 1
0
        private void ListViewItem_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            if (BooksLstView.SelectedItem == null)
            {
                return;
            }
            int selectedindex = BooksLstView.SelectedIndex;
            var bkcl          = (ObservableCollection <Book>)BooksLstView.ItemsSource;

            ModefyBookPage.BookToModefy = bkcl[selectedindex];
            ModefyBookPage modefyBookPage = new ModefyBookPage();

            modefyBookPage.Show();
        }
Ejemplo n.º 2
0
        private void ModifyButton_Click(object sender, RoutedEventArgs e)
        {
            if (BooksLstView.SelectedItem == null)
            {
                return;
            }
            int selectedindex = BooksLstView.SelectedIndex;
            var bkcl          = (ObservableCollection <Book>)BooksLstView.ItemsSource;

            ModefyBookPage.BookToModefy = bkcl[selectedindex];
            Console.WriteLine(bkcl[selectedindex].Name);
            ModefyBookPage modefyBookPage = new ModefyBookPage();

            modefyBookPage.Show();
        }