Ejemplo n.º 1
0
        public void setupLoginForm()
        {
            double endOfText;
            double endOfLabels;

            endOfLabels = Reposition.setLabels(0.2, login1Lbl, login2Lbl);
            endOfText   = Reposition.setTextBoxes(0.2, login1Txt, login2Txt);

            Reposition.setControlLocation(login1Btn, .4, endOfText);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
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);
        }
Ejemplo n.º 7
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);
        }
Ejemplo n.º 8
0
        public void setupLoginForm()
        {
            double endOfText;
            double endOfLabels;

            Reposition.setControlLocation(loginTitleLbl, .3, .2);
            Reposition.setControlLocation(loginPic, .7, .1);

            endOfLabels = Reposition.setLabels(0.4, usernameLbl, passwordLbl);
            endOfText   = Reposition.setTextBoxes(0.4, usernameTxt, passwordTxt);

            Reposition.setControlLocation(loginBtn, .4, endOfText);
        }
Ejemplo n.º 9
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);
        }
Ejemplo n.º 10
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);
        }
Ejemplo n.º 11
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);
        }
Ejemplo n.º 12
0
        public void setupReturnPnl()
        {
            Panel  panel = returnPnl;
            double endOfText;
            double endOfLabels;

            setEnterKey(return1Btn);

            Reposition.setControl(returnTitleLbl, .4, .7, 0, .1);

            endOfLabels = Reposition.setLabels(0.2, return1Lbl);
            endOfText   = Reposition.setTextBoxes(0.2, return1Txt);

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