Example #1
0
        private void ShowCost()
        {
            string[] classesToFollow = new string[this.classesToFollow.Count];
            for (int i = 0; i < classesToFollow.Length; i++)
            {
                classesToFollow[i] = this.classesToFollow[i].GetElement().GetValue();
            }
            int    studentBirthDateDay      = studentBirthDate.GetDateDay();
            int    studentBirthDateMonth    = studentBirthDate.GetDateMonth();
            int    studentBirthDateYear     = studentBirthDate.GetDateYear();
            int    currentDateDay           = currentDate.GetDateDay();
            int    currentDateMonth         = currentDate.GetDateMonth();
            int    currentDateYear          = currentDate.GetDateYear();
            bool   employmentAgencyMediated = this.employmentAgencyMediated.GetValue();
            double cost = EducationInstitutePrice.GetPrice(classesToFollow, studentBirthDateDay, studentBirthDateMonth, studentBirthDateYear, currentDateDay, currentDateMonth, currentDateYear, employmentAgencyMediated);

            MessageBox.Show(messageBoxShowCostString + cost);
        }
Example #2
0
        private void AddsClassToFollow()
        {
            RadioButtonsFormElement internalElement = new RadioButtonsFormElement(this, classToFollowString, EducationInstitutePrice.GetClassTypes(), rowHeight);

            internalElement.SetWidth(radioButtonWidth);
            FormElementRemovable <RadioButtonsFormElement> externalElement = new FormElementRemovable <RadioButtonsFormElement>(this, internalElement, RemoveClassToFollow);

            externalElement.SetRemoveButtonOfset(radioButtonWidth);
            classesToFollow.Add(externalElement);
            ResetPosition();
        }