public BookDetails()
 {
     InitializeComponent();
     _bookRepo     = new BookRepo();
     _typeBookRepo = new TypeBookRepo(_bookRepo);
     InitializeList();
     RefreshInfo();
 }
        public BookRemove()
        {
            InitializeComponent();
            var bookRepo = new BookRepo();

            _typeBook = new TypeBookRepo(bookRepo);
            _index    = 0;
            SetData();
        }
 public RentReturn()
 {
     _personRepo     = new PersonRepo();
     _memberRepo     = new MemberRepo(_personRepo);
     _subscriberRepo = new SubscriberRepo(_personRepo);
     _bookRepo       = new BookRepo();
     _typeBookRepo   = new TypeBookRepo(_bookRepo);
     _rentRepo       = new RentRepo();
     InitializeComponent();
     InitializeForm();
 }
예제 #4
0
        public BookAdd()
        {
            InitializeComponent();
            var _personRepo = new PersonRepo();

            _bookRepo       = new BookRepo();
            _typeBookRepo   = new TypeBookRepo(_bookRepo);
            _genreRepo      = new GenreRepo();
            _publisherRepo  = new PublisherRepo();
            _authorRepo     = new AuthorRepo(_personRepo);
            _firstIteration = true;
            StartingPoint();
        }
예제 #5
0
        public BookEdit()
        {
            InitializeComponent();
            var personRepo = new PersonRepo();
            var bookRepo   = new BookRepo();

            _typeBook       = new TypeBookRepo(bookRepo);
            _authorRepo     = new AuthorRepo(personRepo);
            _publisherRepo  = new PublisherRepo();
            _genreRepo      = new GenreRepo();
            _index          = 0;
            _firstIteration = true;
            SetData();
        }