Beispiel #1
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            int parse = chit_list.SelectedIndex;

            if (parse == -1)
            {
                MessageBox.Show("Не выбран читатель.");
            }
            else
            {
                card_chit chit = new card_chit(chit_list.SelectedValue as BLL.Model.Chitatel);
                chit.Show();
                chit.Closing += Update_chit;
            }
        }
Beispiel #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            card_chit chit = new card_chit();

            chit.Show();
            chit.Closing += Add_chit;
            /*начальные параметры*/

            /* crudServ.Create_Outtype(new BLL.Model.Outtype { Id = 1, Name = "Выдача" });
             * crudServ.Create_Outtype(new BLL.Model.Outtype { Id = 2, Name = "Прием" });
             *
             *
             * crudServ.Create_stat_chit(new BLL.Model.Chitatel_status { Id = 1, Name = "Должник" });
             * crudServ.Create_stat_chit(new BLL.Model.Chitatel_status { Id = 2, Name = "Обычный" });
             *
             * crudServ.CreateChitatel(new BLL.Model.Chitatel { Nomer_chit = 1, FIO = "Иванов Иван Иванович", Telephone = "9611111111", Adress = "Москва", Status_id = 2 });
             * crudServ.CreateChitatel(new BLL.Model.Chitatel { Nomer_chit = 2, FIO = "Петров петр Петрович", Telephone = "9611111112", Adress = "Иваново", Status_id = 2 });
             *
             *
             * crudServ.Create_stat_book(new BLL.Model.Book_status { Id = 1, Name = "Выдана" });
             * crudServ.Create_stat_book(new BLL.Model.Book_status { Id = 2, Name = "В началии" });
             * crudServ.Create_stat_book(new BLL.Model.Book_status { Id = 3, Name = "Утеряна" });
             *
             * crudServ.Create_izdat(new BLL.Model.Izdatelstvo { Id = 1, Name = "Гриф" });
             *
             * crudServ.Create_rubrika(new BLL.Model.Rubrika { Id = 1, Name = "учебник", Head_id = -1 });
             * crudServ.Create_rubrika(new BLL.Model.Rubrika { Id = 2, Name = "учебник русского", Head_id = 1 });
             *
             * crudServ.CreateBook(new BLL.Model.Book { Name = "Учебник русского языка", Autor = "Сидоров", Annot = "Просто учебник, почти без ошибок", Status_id = 2, Rubrika_id = 2, God = 1995, Izdatelstvo_id = 1 });
             * crudServ.CreateBook(new BLL.Model.Book { Name = "Учебник русского языка", Autor = "Сидоров", Annot = "Просто учебник, почти без ошибок", Status_id = 2, Rubrika_id = 2, God = 1995, Izdatelstvo_id = 1 });
             * crudServ.CreateBook(new BLL.Model.Book { Name = "Учебник русского языка", Autor = "Сидоров", Annot = "Просто учебник, почти без ошибок", Status_id = 2, Rubrika_id = 2, God = 1995, Izdatelstvo_id = 1 });
             * crudServ.CreateBook(new BLL.Model.Book { Name = "Учебник русского языка", Autor = "Сидоров", Annot = "Просто учебник, почти без ошибок", Status_id = 2, Rubrika_id = 2, God = 1995, Izdatelstvo_id = 1 });
             * crudServ.CreateBook(new BLL.Model.Book { Name = "Учебник русского языка", Autor = "Сидоров", Annot = "Просто учебник, почти без ошибок", Status_id = 2, Rubrika_id = 2, God = 1995, Izdatelstvo_id = 1 });
             * crudServ.CreateBook(new BLL.Model.Book { Name = "Учебник русского языка", Autor = "Сидоров", Annot = "Просто учебник, почти без ошибок", Status_id = 2, Rubrika_id = 2, God = 1995, Izdatelstvo_id = 1 });
             */
            refresh();
        }