Пример #1
0
 public Event(Type _action, BookCondition _bookCondition, Client _client)
 {
     BookCondition = _bookCondition;
     Action        = _action;
     Client        = _client;
     Date          = DateTime.Now;
 }
Пример #2
0
        public BookCondition CreateBookCondition(Book book)
        {
            BookCondition newBookCondition = new BookCondition(book);

            repository.AddBookCondition(newBookCondition);
            return(newBookCondition);
        }
Пример #3
0
        public Event CreateEvent(Event.Type _action, BookCondition _bookCondition, Client _client)
        {
            Event newEvent = new Event(_action, _bookCondition, _client);

            repository.AddEvent(newEvent);
            return(newEvent);
        }
Пример #4
0
 public void DeleteBookCondition(BookCondition condition)
 {
     repository.DeleteBookCondition(condition);
 }
Пример #5
0
 public string ShowBookCondition(BookCondition bookCondition)
 {
     return(ShowBook(bookCondition.Book) + " (" + bookCondition.Condition + ")");
 }