Download TRIZ-based Systematic Innovation Learning System
Transcript
Label lab = new Label("4. What is the correct pattern for analyzing
problems?", 4, 5, 300, 250);
frm.AddChild(lab);
RadioButton ans = new RadioButton(4, 40,
Microsoft.SPOT.Presentation.Media.Color.White);
frm.AddChild(ans);
RadioButton ans2 = new RadioButton(4, 80,
Microsoft.SPOT.Presentation.Media.Color.White);
frm.AddChild(ans2);
RadioButton ans3 = new RadioButton(4, 120,
Microsoft.SPOT.Presentation.Media.Color.White);
frm.AddChild(ans3);
RadioButton ans4 = new RadioButton(4, 160,
Microsoft.SPOT.Presentation.Media.Color.White);
frm.AddChild(ans4);
frm.AddChild(new Label("General Problem - General Solution - Specific
Problem - Specific Solution", 25, 40, 250, 50));
frm.AddChild(new Label("Specific Problem - Specific Solution - General
Problem - General Solution", 25, 80, 250, 50));
frm.AddChild(new Label("Specific Problem - General Problem - General
Solution - Specific Solution", 25, 120, 250, 50));
frm.AddChild(new Label("General Problem - Specific Solution - Specific
Problem - General Solution", 25, 160, 250, 50));
ans.Tap += new OnTap((object sender, point e) => x = 0);
ans2.Tap += new OnTap((object sender, point e) => x = 0);
ans3.Tap += new OnTap((object sender, point e) => x = 1);
ans4.Tap += new OnTap((object sender, point e) => x = 0);
CommandButton but1 = new CommandButton("Next >", 200, 200);
frm.AddChild(but1);
if (x <= 1)
{
but1.Tap += new OnTap((object sender, point e) => TestPage5(0, z +=
x));
}
else
TestPage4(x, z);
// Set the return transition
RetTrans = Transitions.FadeBlack;
// Activate the form
Graphics.ScreenTransition(frm, Transitions.FadeWhite);
}
private static void TestPage5(int x, int z)
{
Form frm = new Form(Colors.White);
frm.Font = Fonts.Verdana10;
frm.AutoScroll = true;
//q5
Label lab = new Label("5. Which of the following examples follows the
\"Another Dimension Principle\"", 4, 5, 300, 250);
frm.AddChild(lab);
RadioButton ans = new RadioButton(4, 40,
Microsoft.SPOT.Presentation.Media.Color.White);
frm.AddChild(ans);
44