C# Class P02Project.TopWindow

Interaction logic for TopWindow.xaml
Inheritance: SurfaceWindow
Mostrar archivo Open project: raouldc/OptiDev Class Usage Examples

Public Methods

Method Description
ResetTimer ( ) : void

Helper method to reset the timer

StartTimer ( ) : void

Helper method to start the timer

StopTimer ( ) : void

Helper method to stop the timer

TopWindow ( ) : System

Default constructor.

popAll ( ) : void

pop all the screen on the stack => show the Home Screen

popScreen ( ) : void

pop a screen

pushScreen ( Screen screen ) : void

push the given screen into the stack

pushScreenOnStack ( TopLevelPage nextScreen, String buttons, Color colour, System.Windows.Controls.UserControl content, String Subtitle ) : void

push the given screen into the screen stack

Protected Methods

Method Description
OnClosed ( EventArgs e ) : void

Occurs when the window is about to close.

Private Methods

Method Description
AddWindowAvailabilityHandlers ( ) : void

Adds handlers for window availability events.

OnWindowInteractive ( object sender, EventArgs e ) : void

This is called when the user can interact with the application's window.

OnWindowNoninteractive ( object sender, EventArgs e ) : void

This is called when the user can see but not interact with the application's window.

OnWindowUnavailable ( object sender, EventArgs e ) : void

This is called when the application's window is not visible or interactive.

RemoveWindowAvailabilityHandlers ( ) : void

Removes handlers for window availability events.

inavtiveTimer_Tick ( object sender, EventArgs e ) : void

Method Details

OnClosed() protected method

Occurs when the window is about to close.
protected OnClosed ( EventArgs e ) : void
e System.EventArgs
return void

ResetTimer() public method

Helper method to reset the timer
public ResetTimer ( ) : void
return void

StartTimer() public method

Helper method to start the timer
public StartTimer ( ) : void
return void

StopTimer() public method

Helper method to stop the timer
public StopTimer ( ) : void
return void

TopWindow() public method

Default constructor.
public TopWindow ( ) : System
return System

popAll() public method

pop all the screen on the stack => show the Home Screen
public popAll ( ) : void
return void

popScreen() public method

pop a screen
public popScreen ( ) : void
return void

pushScreen() public method

push the given screen into the stack
public pushScreen ( Screen screen ) : void
screen Screen
return void

pushScreenOnStack() public method

push the given screen into the screen stack
public pushScreenOnStack ( TopLevelPage nextScreen, String buttons, Color colour, System.Windows.Controls.UserControl content, String Subtitle ) : void
nextScreen P02Project.Screens.TopLevelPage
buttons String
colour Color
content System.Windows.Controls.UserControl
Subtitle String
return void