Beispiel #1
0
        private void ResetPosition()
        {
            int row = 0;

            rentStartDate.ChangePosition(widthMargin, heightMargin + rowHeight * row);
            row++;
            rentStopDate.ChangePosition(widthMargin, heightMargin + rowHeight * row);
            row++;
            volume.ChangePosition(widthMargin, heightMargin + rowHeight * row);
            row++;
            timesRemoved.ChangePosition(widthMargin, heightMargin + rowHeight * row);
            row++;
            repeatCustomerCheckBox.Location = new Point(widthMargin, heightMargin + rowHeight * row);
            row++;
            calculateRentPrice.Location = new Point(widthMargin, heightMargin + rowHeight * row);
        }
Beispiel #2
0
        private void ResetPosition()
        {
            int row = 0;

            foreach (FormElementRemovable <RadioButtonsFormElement> element in classesToFollow)
            {
                element.ChangePosition(widthMargin, heightMargin + row * rowHeight);
                row += element.GetElement().GetAmountOfRows();
            }
            addClassButton.ChangePosition(widthMargin, heightMargin + row * rowHeight);
            row++;
            studentBirthDate.ChangePosition(widthMargin, heightMargin + row * rowHeight);
            row++;
            currentDate.ChangePosition(widthMargin, heightMargin + row * rowHeight);
            row++;
            employmentAgencyMediated.ChangePosition(widthMargin, heightMargin + row * rowHeight);
            row++;
            showCostButton.ChangePosition(widthMargin, heightMargin + row * rowHeight);
        }