Skip to content

Instantly share code, notes, and snippets.

View kevindente's full-sized avatar

Kevin Dente kevindente

View GitHub Profile
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
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");
}
}