Пример #1
0
 public MainPage()
 {
     InitializeComponent();
     db = new BookDatabase();
     db.createDatabase();
     bookList.ItemsSource = db.selectAllBooks();
 }
Пример #2
0
 public EditingBook(object selected)
 {
     InitializeComponent();
     book        = (Book)selected;
     title.Text  = book.title;
     author.Text = book.firstAuthor;
     year.Text   = book.publishYear.ToString();
     bookdb      = new BookDatabase();
 }
Пример #3
0
 public AddingBook()
 {
     InitializeComponent();
     bookdb = new BookDatabase();
 }