Exemplo n.º 1
0
 void ValidateVersion(ValidatorEventArgs e) =>
 Validators.ValidateString(e, L["Version must be smaller than 256 characters."], 256);
Exemplo n.º 2
0
 void ValidateLink(ValidatorEventArgs e) =>
 Validators.ValidateUrl(e, L["License text link must be smaller than 512 characters."], 512);
Exemplo n.º 3
0
 void ValidateDumpingGroup(ValidatorEventArgs e) =>
 Validators.ValidateString(e, L["Dumping group must be smaller than 256 characters."], 256);
Exemplo n.º 4
0
 void ValidateName(ValidatorEventArgs e) =>
 Validators.ValidateString(e, L["Family name must contain less than 255 characters."], 255);
Exemplo n.º 5
0
 void ValidateName(ValidatorEventArgs e) =>
 Validators.ValidateString(e, L["License name cannot contain more than 255 characters."], 255);
Exemplo n.º 6
0
 void ValidateLongBiggerThanZero(ValidatorEventArgs e) => Validators.ValidateLong(e, 2);
Exemplo n.º 7
0
 void ValidateName(ValidatorEventArgs e) =>
 Validators.ValidateString(e, L["Name must be smaller than 256 characters."], 256);
Exemplo n.º 8
0
 private void ValidateCheck(ValidatorEventArgs e)
 {
     e.Status = Convert.ToBoolean(e.Value) ? ValidationStatus.Success : ValidationStatus.Error;
 }
Exemplo n.º 9
0
        private void ValidateSelect(ValidatorEventArgs e)
        {
            var selectedValue = e.Value == null ? 0 : Convert.ToInt32(e.Value);

            e.Status = selectedValue != 0 ? ValidationStatus.Success : ValidationStatus.Error;
        }
Exemplo n.º 10
0
 //MAIG - CH1 - END - Modified the Regex pattern to support full stop and comma sepcial characters in the Last Name field
 ///<summary>Name check validates that the name has only alpha, digits, space or '</summary>
 protected void CheckName(object source, ValidatorEventArgs e)
 {
     e.IsValid = !ExCheckName.IsMatch(Text);
 }
Exemplo n.º 11
0
 private void ValidatePassword(ValidatorEventArgs e)
 {
     e.Status = Convert.ToString(e.Value)?.Length >= 6 ? ValidationStatus.Success : ValidationStatus.Error;
 }
Exemplo n.º 12
0
 /// <summary>
 /// This doesn't actually do anything, but is required by the control as a
 /// placeholder.  The actual validation is performed during the various method calls.
 /// </summary>
 public void CheckValid(Object Source, ValidatorEventArgs args)
 {
     args.IsValid = !MarkedInvalid;
 }
Exemplo n.º 13
0
 void ValidateIssn(ValidatorEventArgs e) => Validators.ValidateIssn(e);
Exemplo n.º 14
0
 void ValidateFirstPublication(ValidatorEventArgs e) => Validators.ValidateDate(e);
Exemplo n.º 15
0
 void ValidateSource(ValidatorEventArgs e) =>
 Validators.ValidateUrl(e, L["Source URL must be smaller than 255 characters."], 255);
Exemplo n.º 16
0
 void ValidateName(ValidatorEventArgs e) =>
 Validators.ValidateString(e, L["Name must be 50 characters or less."], 50);
Exemplo n.º 17
0
 void ValidateIntegerBiggerThanZero(ValidatorEventArgs e) => Validators.ValidateInteger(e, 1);
Exemplo n.º 18
0
 void ValidateModelCode(ValidatorEventArgs e) =>
 Validators.ValidateString(e, L["Model code must be 45 characters or less."], 45);
Exemplo n.º 19
0
 void ValidateAlias(ValidatorEventArgs e) =>
 Validators.ValidateString(e, L["Alias must be smaller than 256 characters."], 256);
Exemplo n.º 20
0
 void ValidateDoubleBiggerThanZero(ValidatorEventArgs e) => Validators.ValidateDouble(e);
Exemplo n.º 21
0
 void ValidateIntroduced(ValidatorEventArgs e) => Validators.ValidateDate(e);
Exemplo n.º 22
0
 void ValidatePackage(ValidatorEventArgs e) =>
 Validators.ValidateString(e, L["Package must be 45 characters or less."], 45);
Exemplo n.º 23
0
 ///<summary>Validator delegate for the page</summary>
 protected void CheckValid(object Source, ValidatorEventArgs e)
 {
     e.IsValid = (_vldpage.ErrorMessage == "");
 }
Exemplo n.º 24
0
 void ValidateFloatBiggerThanZero(ValidatorEventArgs e) => Validators.ValidateFloat(e);
Exemplo n.º 25
0
 void ValidateSpdx(ValidatorEventArgs e) =>
 Validators.ValidateString(e, L["SPDX identifier cannot contain more than 255 characters."], 255);
Exemplo n.º 26
0
 void ValidateFloatBiggerThanOne(ValidatorEventArgs e) => Validators.ValidateFloat(e, 1);
Exemplo n.º 27
0
 void ValidateText(ValidatorEventArgs e) =>
 Validators.ValidateString(e, L["License text cannot contain more than 131072 characters."], 131072);
Exemplo n.º 28
0
 void ValidateProcess(ValidatorEventArgs e) =>
 Validators.ValidateString(e, L["Process must be 45 characters or less."], 45);
Exemplo n.º 29
0
 void ValidateDumpDate(ValidatorEventArgs e) => Validators.ValidateDate(e);
Exemplo n.º 30
0
 void ValidateFacebook(ValidatorEventArgs e) =>
 Validators.ValidateString(e, L["Facebook username must be smaller than 256 characters."], 256);