Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. public class BookViewModel : ViewModelBase
  2. {
  3. private readonly Book _book;
  4.  
  5. public BookViewModel(Book book)
  6. {
  7. this._book = book;
  8. }
  9. public string Title
  10. {
  11. get { return _book.Title; }
  12. }
  13.  
  14. public string Author
  15. {
  16. get { return _book.Author; }
  17. }
  18.  
  19. public int Count
  20. {
  21. get { return _book.Count;}
  22. }
  23.  
  24. public double Price
  25. {
  26. get { return _book.Price; }
  27. }
  28.  
  29. public string Publisher
  30. {
  31. get { return _book.Publisher; }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement