public Page_dodawanie_autorow(Frame frame, BibliotekaEntities db) { InitializeComponent(); frame1 = frame; this.db = db; }
public Page_dodawanie_ksiazek(Frame frame1, BibliotekaEntities db) { InitializeComponent(); this.frame1 = frame1; this.db = db; cmbAutor.ItemsSource = db.Author.ToList(); }
public Autorzy_Page(Frame frame3, BibliotekaEntities db) { InitializeComponent(); this.frame3 = frame3; this.db = db; listView_authors.ItemsSource = db.Author.ToList(); lbl_number.Content = listView_authors.Items.Count; }
public Page_Wypozycz(BibliotekaEntities db) { InitializeComponent(); this.db = db; Listview_Client.ItemsSource = db.Clients.ToList(); Listview_Book.ItemsSource = db.Books.ToList(); }
public Page_Lista_wypozyczen(BibliotekaEntities db) { InitializeComponent(); this.db = db; ShowList(wys); }
public Szczegoly(Order order, BibliotekaEntities db) { InitializeComponent(); this.order1 = order; this.db = db; // wyswietl = new Klasa_glowna(); showWyp(); }
public Page_edycja_usuwanie_autorow(Author author1, Frame frame1, BibliotekaEntities db) { InitializeComponent(); this.author1 = author1; this.frame1 = frame1; this.db = db; txt_name.Text = author1.FirstName; txt_surename.Text = author1.Surename; }
public Okno_dodaj_wspolautora(Frame frame1, BookAuthor bookAuthor1, BibliotekaEntities db) { InitializeComponent(); this.db = db; this.bookAuthor1 = bookAuthor1; this.frame1 = frame1; cmb_CoAuthor.ItemsSource = db.Author.ToList(); lbl_bookName.Content = bookAuthor1.Title; }
public Page2(Frame frame2, BibliotekaEntities db) { InitializeComponent(); this.frame2 = frame2; this.db = db; var linqsearch = from book in db.Books join ak in db.AuthorsBook on book.IdBook equals ak.IdBook join author in db.Author on ak.IdAuthor equals author.IdAuthor select new BookAuthor { IdBook = book.IdBook, Title = book.Title, Firstname = author.FirstName, SureName = author.Surename }; listView_ksiazka.ItemsSource = linqsearch.ToList(); lbl_ilosc.Content = listView_ksiazka.Items.Count; }
public Page_edycja_usun_ksiazke(BookAuthor ba1, Frame frame1, BibliotekaEntities db) { InitializeComponent(); this.ba1 = ba1; this.frame1 = frame1; this.db = db; books1 = db.Books.Find(ba1.IdBook); txt_title.Text = ba1.Title.ToString(); var linqAuthor = from x in db.AuthorsBook join y in db.Author on x.IdAuthor equals y.IdAuthor where x.IdBook == ba1.IdBook select new BookAuthor { Firstname = y.FirstName, SureName = y.Surename, IdAuthorsBook = x.IdAK }; cmb_Author.ItemsSource = linqAuthor.ToList(); }