private void ValidationDataImage() { ObjSourceImageRegister.SourceImageFirstName = ValidationDataRegister.CheckNickname(ObjDataRegister.FirstName) ? ObjSourceImageRegister.ImagePerson : ObjSourceImageRegister.ImageExclamation; ObjSourceImageRegister.SourceImageLastName = ValidationDataRegister.CheckName(ObjDataRegister.LastName) ? ObjSourceImageRegister.ImagePerson : ObjSourceImageRegister.ImageExclamation; ObjSourceImageRegister.SourceImageEmail = ValidationDataRegister.CheckEmail(ObjDataRegister.Email) ? ObjSourceImageRegister.ImageEmail : ObjSourceImageRegister.ImageExclamation; ObjSourceImageRegister.SourceImagePassword = ValidationDataRegister.CheckPassword(ObjDataRegister.Password) ? ObjSourceImageRegister.ImagePassword : ObjSourceImageRegister.ImageExclamation; }
private bool[] ValidationDataCheck(params bool[] CheckParams) { bool[] ValidationCheck = CheckParams; if (ValidationCheck.Length == 2) { ValidationCheck[0] = ValidationDataRegister.CheckNickname(ObjDataRegister.FirstName); ValidationCheck[1] = ValidationDataRegister.CheckPassword(ObjDataRegister.Password); } else if (ValidationCheck.Length == 4) { ValidationCheck[0] = ValidationDataRegister.CheckNickname(ObjDataRegister.FirstName); ValidationCheck[1] = ValidationDataRegister.CheckPassword(ObjDataRegister.Password); ValidationCheck[2] = ValidationDataRegister.CheckName(ObjDataRegister.LastName); ValidationCheck[3] = ValidationDataRegister.CheckEmail(ObjDataRegister.Email); } return(ValidationCheck); }