Merlin Quick Reference

Single-control steps

To create a step out of a single System.Windows.Forms.Control:
        new TemplateStep(myControl)
        new TemplateStep(myControl, "Step Title")  


To create a step with margins around the control:
        new TemplateStep(myControl, 10)
        new TemplateStep(myControl, new Padding(10, 5, 10, 5))
        new TemplateStep(myControl, 10, "My Title")
        new TemplateStep(myControl, new Padding(10, 5, 10, 5), "My Title")

Conditional Steps

To make a step occur only if a condition is true:
        new ConditionalStep(leapYearOnlyStep, () => { return DateTime.IsLeapYear(DateTime.Now.Year); } )  

Last edited Jan 17, 2009 at 2:58 AM by yevster, version 6

Comments

No comments yet.