This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Microsoft Word" | |
activate | |
set currentZoom to percentage of zoom of view of active window | |
set newZoom to (round (currentZoom + 50) / 50) * 50 | |
log newZoom | |
if newZoom <= 500 then | |
set percentage of zoom of view of active window to newZoom | |
end if | |
end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Step3Validator : ClassValidator<Step3> | |
{ | |
public Step3Validator() | |
{ | |
RuleFor(s => s.MessageGroup).Required().WithMessage("This field is required"); | |
RuleFor(s => s.MessageGroup).Length(5, 5).Pattern(ValidationPattern.Number).WithMessage("Please enter a 5 digit number"); | |
} | |
} |