public BookDetailsWindow(Book book)
 {
     InitializeComponent();
     TitleBox.Text  = book.Title;
     AuthorBox.Text = book.Author;
     RelCal.SetDate(book.ReleaseDate);
     typeButton.safeSetCurrent(book.Type);
 }
 public BookDetailsWindow(String title, String author, DateTime date, int typeId)
 {
     InitializeComponent();
     TitleBox.Text  = title;
     AuthorBox.Text = author;
     RelCal.SetDate(date);
     typeButton.safeSetCurrent((BookType)typeId);
 }