Ejemplo n.º 1
0
        /// <summary>
        /// Initialize the User Control
        /// </summary>
        public UCMembers(Form form)
        {
            InitializeComponent();
            this.form = form as LibraryForm;
            this.txtSearchPlaceholder = txtSearch.Text;
            UIExtension.CreateListViewAlphabeticGroups(lvMembers);

            // Subscribes the information fields update methods to run whenever other services are updated in database.
            this.form.memberService.Updated += MemberService_Updated;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initialize the User Control.
        /// </summary>
        public UCBook(Form form)
        {
            InitializeComponent();
            this.form = form as LibraryForm;
            this.txtFilterPlaceholder = txtFilter.Text;
            UIExtension.CreateListViewAlphabeticGroups(lvSelectAuthor);

            // Subscribes the information fields update methods to run whenever other services are updated in database.
            this.form.authorService.Updated   += AuthorService_Updated;
            this.form.bookCopyService.Updated += BookCopyService_Updated;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Initialize the User Control.
        /// </summary>
        public UCLoansSearch(Form form = null)
        {
            InitializeComponent();
            this.form = form as LibraryForm;
            this.txtSearchPlaceholder = txtSearch.Text;
            UIExtension.CreateListViewAlphabeticGroups(lvNewLoan);
            UIExtension.CreateListViewAlphabeticGroups(lvReturnLoan);

            // Subscribes the information fields update methods to run whenever other services are updated in database.
            this.form.authorService.Updated   += AuthorService_Updated;
            this.form.bookService.Updated     += BookService_Updated;
            this.form.bookCopyService.Updated += BookCopyService_Updated;
            this.form.loanService.Updated     += LoanService_Updated;
            this.form.memberService.Updated   += MemberService_Updated;
        }