private string validate() { StringBuilder builder = new StringBuilder(); TextBoxValidator validator = new TextBoxValidator(); validator.append(builder, validator.checkValidLength(animal_id.Text.Trim(), 10, "Id Животного")); validator.append(builder, validator.checkValidLength(vactination_id.Text.Trim(), 10, "Id вакцины")); if (String.IsNullOrEmpty(builder.ToString())) { return(null); } return(builder.ToString()); }
private string validate() { StringBuilder builder = new StringBuilder(); TextBoxValidator validator = new TextBoxValidator(); validator.append(builder, validator.checkValidLength(service_name.Text.Trim(), 50, "Название услуги")); validator.append(builder, validator.isValidDoubleValue(prices.Text.Trim(), "Ценник")); if (String.IsNullOrEmpty(builder.ToString())) { return(null); } return(builder.ToString()); }
private string validate() { StringBuilder builder = new StringBuilder(); TextBoxValidator validator = new TextBoxValidator(); validator.append(builder, validator.checkValidLength(owner_id.Text.Trim(), 10, "Id Владельца")); validator.append(builder, validator.checkValidLength(service_id.Text.Trim(), 10, "Id услуги")); if (String.IsNullOrEmpty(builder.ToString())) { return(null); } return(builder.ToString()); }
private string validate() { StringBuilder builder = new StringBuilder(); TextBoxValidator validator = new TextBoxValidator(); validator.append(builder, validator.checkValidLength(veterinarian_name.Text.Trim(), 50, "Имя")); validator.append(builder, validator.checkValidLength(veterinarian_surname.Text.Trim(), 50, "Фамилия")); validator.append(builder, validator.checkValidLength(veterinarian_lastname.Text.Trim(), 50, "Отчество")); validator.append(builder, validator.checkValidLength(email.Text.Trim(), 25, "Email")); if (String.IsNullOrEmpty(builder.ToString())) { return(null); } return(builder.ToString()); }
private string validate() { StringBuilder builder = new StringBuilder(); TextBoxValidator validator = new TextBoxValidator(); validator.append(builder, validator.checkValidLength(owner_name.Text.Trim(), 50, "Имя владельца")); validator.append(builder, validator.checkValidLength(owner_surname.Text.Trim(), 50, "Фамилия владельца")); validator.append(builder, validator.checkValidLength(owner_lastname.Text.Trim(), 50, "Отчество владельца")); validator.append(builder, validator.PhoneNumberValidate(phone.Text.Trim())); if (String.IsNullOrEmpty(builder.ToString())) { return(null); } return(builder.ToString()); }
private string validate() { StringBuilder builder = new StringBuilder(); TextBoxValidator validator = new TextBoxValidator(); validator.append(builder, validator.checkValidLength(vactination_name.Text.Trim(), 50, "Название вакцины")); if (String.IsNullOrEmpty(builder.ToString())) { return(null); } return(builder.ToString()); }
private string validate() { StringBuilder builder = new StringBuilder(); TextBoxValidator validator = new TextBoxValidator(); validator.append(builder, validator.checkValidLength(AnimalName.Text.Trim(), 50, "Имя животного")); validator.append(builder, validator.checkValidLength(AnimalBreed.Text.Trim(), 50, "Порода животного")); validator.append(builder, validator.checkValidLength(AnimalGender.Text.Trim(), 50, "Пол животного")); validator.append(builder, validator.checkValidLength(AnimalAge.Text.Trim(), 10, "Возраст животного")); validator.append(builder, validator.checkValidLength(AnimalAge.Text.Trim(), 10, "Id Ветеринара")); validator.append(builder, validator.checkValidLength(AnimalAge.Text.Trim(), 10, "Id Владельца")); if (String.IsNullOrEmpty(builder.ToString())) { return(null); } return(builder.ToString()); }