Пример #1
0
        public void setupPasswordPnl()
        {
            Panel  panel = passwordPnl;
            double endOfText;
            double endOfLabels;

            Reposition.setTitle(passwordTitleLbl);
            endOfLabels = Reposition.setLabels(0.2, password1Lbl, password2Lbl, password3Lbl);
            endOfText   = Reposition.setTextBoxes(0.2, password1Txt, password2Txt, password3Txt);

            Reposition.setControlLocation(password1Btn, .4, endOfText);
        }
Пример #2
0
        public void setupRent2Pnl()
        {
            double endOfText;
            double endOfLabels;

            Reposition.setTitle(rentTitle2Lbl);

            endOfLabels = Reposition.setLabels(0.2, rent2Lbl, rent3Lbl, rent4Lbl);
            endOfText   = Reposition.setTextBoxes(0.2, rent2Txt, rent3Txt, rent4Txt);

            Reposition.setControlLocation(rent2Btn, 0.4, endOfLabels);
        }
Пример #3
0
        public void setupRemoveUserPnl()
        {
            double endOfText;
            double endOfLabels;

            Reposition.setTitle(removeUserTitleLbl);

            endOfLabels = Reposition.setLabels(0.2, removeUser1Lbl);
            endOfText   = Reposition.setTextBoxes(0.2, removeUser1Txt);

            Reposition.setControlLocation(removeUser1Btn, .4, endOfText + 0.1);
        }
Пример #4
0
        /// <summary>
        /// Sets the position of all components within the new customer panel based on percent relative locations
        /// </summary>
        public void setupNewCustomerPnl()
        {
            double endOfText;
            double endOfLabels;

            Reposition.setTitle(newCustomerTitleLbl);

            endOfLabels = Reposition.setLabels(0.2, newCustomer1Lbl, newCustomer2Lbl, newCustomer3Lbl, newCustomer4Lbl, newCustomer5Lbl);
            endOfText   = Reposition.setTextBoxes(0.2, newCustomer1Txt, newCustomer2Txt, newCustomer3Txt, newCustomer4Txt, newCustomer5Txt);

            Reposition.setControlLocation(newCustomer1Btn, .4, endOfText);
        }
Пример #5
0
        public void setupAddUserPnl()
        {
            double endOfText;
            double endOfLabels;

            Reposition.setTitle(addUserTitleLbl);
            endOfLabels = Reposition.setLabels(0.2, addUser1Lbl, addUser2Lbl, addUser3Lbl);
            endOfText   = Reposition.setTextBoxes(0.2, addUser1Txt, addUser2Txt, addUser3Txt);

            Reposition.setControlLocation(addUserRdb, .4, endOfText);
            Reposition.setControlLocation(addUserBtn, .4, endOfText + 0.1);
        }
Пример #6
0
        public void setupAddMoviePnl()
        {
            double endOfText;
            double endOfLabels;

            Reposition.setTitle(addMovieTitleLbl);

            endOfLabels = Reposition.setLabels(0.2, addMovie1Lbl, addMovie2Lbl, addMovie3Lbl);
            endOfText   = Reposition.setTextBoxes(0.2, addMovie1Txt, addMovie2Txt, addMovie3Txt);

            Reposition.setControlLocation(addMovie1Btn, .4, endOfText);
        }
Пример #7
0
        public void setupRentPnl()
        {
            double endOfText;
            double endOfLabels;

            setEnterKey(rent1Btn);

            Reposition.setTitle(rentTitleLbl);

            endOfLabels = Reposition.setLabels(0.2, checkout1Lbl);
            endOfText   = Reposition.setTextBoxes(0.2, checkout1Txt);

            Reposition.setControlLocation(rent1Btn, .4, endOfText);
        }
Пример #8
0
        public void setupRemoveCopyPnl()
        {
            double endOfText;
            double endOfLabels;

            setEnterKey(removeCopy1Btn);

            Reposition.setTitle(removeCopyTitleLbl);

            endOfLabels = Reposition.setLabels(0.2, removeCopy1Lbl);
            endOfText   = Reposition.setTextBoxes(0.2, removeCopy1Txt);

            Reposition.setControlLocation(removeCopy1Btn, .4, endOfText);
        }
Пример #9
0
        /*
         * ----------------------------------------------------------------------------------------------
         * Part 5: Panel Setup Methods
         * ----------------------------------------------------------------------------------------------
         */

        public void setupAddCopyPnl()
        {
            double endOfText;
            double endOfLabels;

            setEnterKey(addCopy1Btn);

            Reposition.setTitle(addCopyTitleLbl);

            endOfLabels = Reposition.setLabels(0.2, addCopy1Lbl, addCopy2Lbl);
            endOfText   = Reposition.setTextBoxes(0.2, addCopy1Txt, addCopy2Txt);

            Reposition.setControlLocation(addCopy1Btn, .4, endOfText);
        }