private bool IsValidForm() { bool areFilled = FieldValidation.NotNullOrEmpty(FirstNameBox.Text, LastNameBox.Text, WorkExperienceBox.Text); bool isSelected = FieldValidation.IsSelected(AccountComboBox.SelectedIndex); return(areFilled && isSelected); }
private bool FormIsValid() { bool selectedComboBoxes = FieldValidation.AreSelected(FoodQualityComboBox.SelectedIndex, AirQualityComboBox.SelectedIndex , DrinkingWaterComboBox.SelectedIndex, TerrainQualityComboBox.SelectedIndex , InlandWaterQualityComboBox.SelectedIndex, MedicalVasteComboBox.SelectedIndex, RadiationComboBox.SelectedIndex, RecreationalWaterComboBox.SelectedIndex); bool inputedText = FieldValidation.NotNullOrEmpty(NameBox.Text, CountryNameBox.Text, PostalCodeBox.Text); return(selectedComboBoxes && inputedText); }
private bool FormIsValid() { bool areFilled = FieldValidation.NotNullOrEmpty(FirstNameBox.Text, LastNameBox.Text, BirthPlaceBox.Text, UNBBox.Text, MothersNameBox.Text, MothersProfessionBox.Text, FathersNameBox.Text, FathersProfessionBox.Text, InsuranceNumberBox.Text); bool areChecked = (MaleCheckBox.IsChecked.Value || FemaleCheckBox.IsChecked.Value) && (MarriedCheckBox.IsChecked.Value || NotMarriedCheckBox.IsChecked.Value); return(areFilled && areChecked && FieldValidation.AreSelected(ResidancePlaceComboBox.SelectedIndex)); }
private bool IsValidForm() => FieldValidation.NotNullOrEmpty(NameBox.Text);
private bool IsValidForm() => FieldValidation.NotNullOrEmpty(NameBox.Text) && FieldValidation.IsSelected(PlaceComboBox.SelectedIndex);
private bool IsValidForm() => FieldValidation.NotNullOrEmpty(FullNameBox.Text, EmailBox.Text, PasswordBox.Password) && FieldValidation.IsSelected(RolesComboBox.SelectedIndex);