Code Sample for InfoPath 2010