Exemplo n.º 1
0
 public MainPage()
 {
     InitializeComponent();
     db = new BookDatabase();
     db.createDatabase();
     bookList.ItemsSource = db.selectAllBooks();
 }
Exemplo n.º 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();
 }
Exemplo n.º 3
0
 public AddingBook()
 {
     InitializeComponent();
     bookdb = new BookDatabase();
 }