Day 1 Homework Assignment
- Posted: Nov 11, 2010 at 5:45 PM
- 27,800 Views
- 7 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
Congratulations! You've learned the basics. Now it’s time to flex your newfound knowledge, borrow from the concepts you’ve learned thus far, and write a simple application. You'll save the world by allowing a mobile user to type in a special sequence of numbers every 108 minutes. If you get stuck, watch just enough of the next video to get un-stuck.
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
nice HW, was a good brush up of things done before....could have been little tougher though
Thanks Bob!!
Thanks for the homework! Should have made it a bit harder though. Took me 2 minutes. Probably because you are awesome at explaining everything earlier :) Cheers.
It took me a while to complete this homework assignment because time went forward and back a few times.
Here is my code, any good? :)
namespace Hello_World{
public partial class MyFirstXamlPage : PhoneApplicationPage {
public MyFirstXamlPage() {
InitializeComponent();
}
private void button1_Click(object sender, RoutedEventArgs e) {
if (checkCode(secretCode.Text))
setText(outputText, "YOU SAVED THE WORLD");
else
setText(outputText, "YOU KILLED THE WORLD");
}
private Boolean checkCode(string theCode) {
if (theCode == "42 333 495 4493 293") {
return true;
} else {
return false;
}
}
private void setText(TextBlock textBlock, string textInput) {
textBlock.Text = textInput;
}
}
}
@Joseph Clover: sorry about that, formatting seemed to have failed. Here is a clean version :)
http://pastebin.com/bBdvmB9R
Thanks Bob! Great lessons!
I love the LOST reference xD
Remove this comment
Remove this thread
close