void Initialise() { StackPanel01.Visibility = Visibility.Visible; StackPanel02.Visibility = Visibility.Hidden; StackPanel03.Visibility = Visibility.Hidden; questions.Add("What is the captitol of Italy?"); questions.Add("What is the captitol of Mongolia"); questions.Add("How do you spell LLanfair.... fully?"); questions.Add("What is 1/0 * 3"); questions.Add("Who is the prime minister of Singapore"); var qanda01 = new QuestionBank("What is the capitol of Italy", "Rome", 100); var qanda02 = new QuestionBank("What is the capitol of Mongolia", "Ulaanbaatar", 1000); var qanda03 = new QuestionBank("How do you spell LLanfair.... fully?", "Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch", 3000); var qanda04 = new QuestionBank("What is 1/0 * 3", "0", 100); var qanda05 = new QuestionBank("Who is the prime minister of Singapore", "Halimah Yacob", 2000); // classwork and homework // create a game to randomly show one of the questions. // have a text box to reciever the answer // if its right display appropriate message and add to total points // if wrong zero points and appropriate message // create a win state // add some imagery as well }
void Initialise() { StackPanel01.Visibility = Visibility.Visible; StackPanel02.Visibility = Visibility.Hidden; StackPanel03.Visibility = Visibility.Hidden; questions.Add("What is the capital of Italy"); questions.Add("What is the capital of Mongolia"); questions.Add("How do you spell llanfair...fully"); questions.Add("What is 1/0 *3"); questions.Add("Who is the president of Singapore"); var qanda01 = new QuestionBank("What is the capital of Italy", "Rome", 100); var qanda02 = new QuestionBank("What is the capital of Mongolia", "Who knows", 200); var qanda03 = new QuestionBank("How do you spell llanfair...fully", "Rome", 50_000); var qanda04 = new QuestionBank("What is 1/0 *3", "Undefined", 1000); var qanda05 = new QuestionBank("Who is the president of Singapore", "Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch", 500); // create a game to randomly show one of the questions. // have a text box to receive answer // if its right display appropriatemessage and add to total points // if wrong , zero points and appropriate message // create a winning condition // add some imagery as well }