Exemple #1
0
        private void Add_button(object sender, RoutedEventArgs e)
        {
            UpdateItemWindow window = new UpdateItemWindow(library);

            window.Owner = this;
            window.Show();
        }
Exemple #2
0
        private void Edit_item_button(object sender, RoutedEventArgs e)
        {
            //EDIT ITEM BIBLIO
            if (item_list.SelectedItem == null)
            {
                return;
            }
            if (item_list.SelectedIndex < 0 || item_list.SelectedIndex > library.Items.Count - 1)
            {
                return;
            }
            UpdateItemWindow window = new UpdateItemWindow(library, item_list.SelectedIndex);

            window.Owner = this;
            window.page_title.Content = "ÉDITER UN ÉLÉMENT";
            window.Show();
        }