public void Manage(model.BookInfo bookInfo)
        {
            var dlg = new View.BookCopyPage();

            (dlg.DataContext as BookCopyPageViewModel).CurrentBook = bookInfo;
            dlg.ShowDialog();
        }
Ejemplo n.º 2
0
        public static BookCopy MakeCopy(model.BookInfo bookInfo,
                                        string bookTag, string longTag)
        {
            BookCopy bookCopy = new BookCopy();

            bookCopy.BookInfoId   = bookInfo.Id;
            bookCopy.BookTagShort = bookTag;
            bookCopy.BookTagLong  = longTag;
            return(bookCopy);
        }