private void Button_Click(object sender, RoutedEventArgs e) { Window3 list = new Window3(); list.Show(); this.Close(); }
private void Button_Click_1(object sender, RoutedEventArgs e) { MessageBox.Show("You succesfully deleted" + " " + booklist.SelectedItem.ToString() + " " + "from your list!"); Window2.booklst.Remove(booklist.SelectedItem.ToString()); booklist.Items.Remove(booklist.SelectedItem); Window3 window3 = new Window3(); window3.Show(); this.Close(); }