Пример #1
0
        public PatronMainMenuForm(FormClose hClose, LogoutButton hLogout, ViewBooksButton hViewBooks, CheckOutButton hCheckOut, RenewBooksButton hRenewBooks)
        {
            handleClose      = hClose;
            handleLogOut     = hLogout;
            handleViewBooks  = hViewBooks;
            handleCheckOut   = hCheckOut;
            handleRenewBooks = hRenewBooks;

            InitializeComponent();
            BackColor = Color.SteelBlue;
            uxWelcomeLabel.BackColor = Color.LightSteelBlue;
            uxButtonPanel.BackColor  = Color.LightSteelBlue;
        }
        public AdminMainMenuForm(FormClose hClose, LogoutButton hLogout, ViewBooksButton hViewBooks, CheckOutButton hCheckOut, RenewBooksButton hRenewBooks, ReturnBooksButton hReturnBooks, UpdateConditionButton hUpdate, RetireBookButton hRetire, ResetPasswordButton hReset, AddBookButton hAdd, CreateAccountButton hCreate)
        {
            handleClose           = hClose;
            handleLogOut          = hLogout;
            handleViewBooks       = hViewBooks;
            handleCheckOut        = hCheckOut;
            handleRenewBooks      = hRenewBooks;
            handleReturnBooks     = hReturnBooks;
            handleUpdateCondition = hUpdate;
            handleRetireBook      = hRetire;
            handleResetPassword   = hReset;
            handleAddBook         = hAdd;
            handleCreateAccount   = hCreate;

            InitializeComponent();
            BackColor = Color.SteelBlue;
            uxWelcomeLabel.BackColor = Color.LightSteelBlue;
            uxButtonPanel.BackColor  = Color.LightSteelBlue;
        }