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 ClearForm()
        {
            if (UserId == 0)
            {
                IdTextbox.Text = "0";
                UsernameTextbox.Clear();
                FirstnameTextbox.Clear();
                LastnameTextbox.Clear();
                PasswordTextbox.Clear();
                ConfirmTextbox.Clear();
                IsAdminCheckbox.Checked    = false;
                IsApproverCheckbox.Checked = false;
                IsVisitorCheckbox.Checked  = false;
            }
            else
            {
                LoadUserDetails();
            }

            passwordNotMatch = false;
        }