Beispiel #1
0
        public void ResetAddStudentControl(bool clearLog = true)
        {
            /*
             * This function contains all code that needs to be executed when the control is reloaded
             *
             * You need to edit this code.
             * Example: Emptying textboxes and gridviews
             *
             */
            phoneNumbers.Clear();
            phoneTypes.Clear();
            StudentidTextbox.ResetText();
            FirstnameTextbox.ResetText();
            LastnameTextbox.ResetText();
            GenderTextbox.ResetText();
            StreetadressTextbox.ResetText();
            ZipcodeTextbox.ResetText();
            CityTextbox.ResetText();
            CountryTextbox.ResetText();
            BirthdateDatepicker.Value = BirthdateDatepicker.MaxDate;
            PhoneNumberTextbox.ResetText();
            AddedPhoneNumbers_Readonly.ResetText();

            if (clearLog)
            {
                RegisterStatusTextbox.ResetText();
            }
        }
Beispiel #2
0
 private void ResetTextBoxes()
 {
     FirstNameTextbox.ResetText();
     MiddleNameTextbox.ResetText();
     LastNameTextbox.ResetText();
     BirthDateTextbox.ResetText();
     GenderTextbox.ResetText();
     BloodTypeTextbox.ResetText();
     PresentAddressTextbox.ResetText();
     ReligionTextbox.ResetText();
     EmailAddressTextbox.ResetText();
     MobileNumberTextbox.ResetText();
 }