C# Class P02Project.Screens.Game.Quiz

Interaction logic for Quiz.xaml
Inheritance: System.Windows.Window
Mostrar archivo Open project: raouldc/OptiDev Class Usage Examples

Public Methods

Method Description
Quiz ( ) : System

Initializes a new instance of the Quiz class.

Private Methods

Method Description
ChooseQuestions ( List AllQuestions ) : void

Chooses the questions.

ResetTimer ( ) : void

Resets the timer.

Window_Loaded ( object sender, RoutedEventArgs e ) : void

Handles the Loaded event of the Window control.

addButtonColours ( int index ) : void

Adds the button colours.

answerQuestion ( String content ) : void
changeButtonState ( ) : void

Changes the state of the button.

close_Clicked ( object sender, RoutedEventArgs e ) : void
fifty_fifty_click ( object sender, RoutedEventArgs e ) : void

Handles the click event of the fifty_fifty control.

hint_click ( object sender, RoutedEventArgs e ) : void

Handles the click event of the hint control.

option_A_Clicked ( object sender, RoutedEventArgs e ) : void

Handles the Clicked event of the option_A control.

option_B_Clicked ( object sender, RoutedEventArgs e ) : void

Handles the Clicked event of the option_B control.

option_C_Clicked ( object sender, RoutedEventArgs e ) : void

Handles the Clicked event of the option_C control.

option_D_Clicked ( object sender, RoutedEventArgs e ) : void

Handles the Clicked event of the option_D control.

question1_Click ( object sender, RoutedEventArgs e ) : void

Handles the Click event of the question1 control.

question2_CLick ( object sender, RoutedEventArgs e ) : void

Handles the Click event of the question2 control.

question3_Click ( object sender, RoutedEventArgs e ) : void

Handles the Click event of the question3 control.

question4_Click ( object sender, RoutedEventArgs e ) : void

Handles the Click event of the question4 control.

question5_click ( object sender, RoutedEventArgs e ) : void

Handles the click event of the question5 control.

question6_Click ( object sender, RoutedEventArgs e ) : void

Handles the Click event of the question6 control.

setContent ( Question qn ) : void

Sets the content.

setScore ( ) : void

Sets the score.

skip_click ( object sender, RoutedEventArgs e ) : void

Handles the click event of the skip control.

Method Details

Quiz() public method

Initializes a new instance of the Quiz class.
public Quiz ( ) : System
return System