08.01.2015 Views

Beginning Web Development, Silverlight, and ASP.NET AJAX

Beginning Web Development, Silverlight, and ASP.NET AJAX

Beginning Web Development, Silverlight, and ASP.NET AJAX

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

222<br />

CHAPTER 9 ■ .<strong>NET</strong> 3.0: WINDOWS WORKFLOW FOUNDATION<br />

private void codeActivity2_ExecuteCode(object sender, EventArgs e)<br />

{<br />

Console.WriteLine("Hello World to you who is " + this.ageVal + " years old!");<br />

Console.ReadLine();<br />

}<br />

When you are done, the Designer should look like Figure 9-10. No errors, no red<br />

alerts.<br />

Figure 9-10. Your completed workflow<br />

Now when you run the application, take a look at what happens. Remember you<br />

hard-coded the age to be 125 in Program.cs The output that is rendered as a result is<br />

shown in Figure 9-11. Change the age parameter to a value less that 100, <strong>and</strong> you’ll see<br />

the output in Figure 9-12.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!