C# Class OS2Indberetning.MainPage

Page where drive specific selections are made before starting the drive.
Inheritance: Xamarin.Forms.ContentPage
Exibir arquivo Open project: os2indberetning/OS2_Windows_Phone

Public Properties

Property Type Description
List ListView

Public Methods

Method Description
InitializeTheme ( ) : void

Method that tries to initialization the theme

MainPage ( ) : System

Constructor that handles initialization of the page

SetContent ( ) : View

Method that creates the page content

Protected Methods

Method Description
OnAppearing ( ) : void

Override of the OnAppearing event. If an item is Selected in the _list it is reset. Sets the content of the page here, because it might not have been properly initialized with colors if the user wasnt coupled If its the first time its called, it will send a ShowCross message to the viewmodel. Also sends an Update message to the viewmodel

OnBackButtonPressed ( ) : bool

Override of the OnBackButtonPressed event

Private Methods

Method Description
CheckStack ( ) : StackLayout

Method that creates a stacklayout with the checkhome checkbox

ClosePopup ( ) : void

Method that handles closing the popup

CreatePopup ( string Message ) : StackLayout

Method that creates a stacklayout of a popup with a specific message

LogoutPopup ( ) : StackLayout

Method that creates a stacklayout of a popup with a yes/no before logging out

SendLogoutMessage ( ) : void

Method that handles sending an Refresh message

SendSelectedMessage ( ) : void

Method that handles sending an Selected message

SendViewStoredMessage ( ) : void

Method that handles sending an ViewStored message

ShowLogoutPopup ( ) : void

Method that handles displaying of an alert popup for logout

StartDrive ( ) : void

Method that handles displaying of an alert popup with the correct message to notify the user that something is missing

ToggleHomeProperty ( ) : void

Method that handles sending an ToggleHome message

Method Details

InitializeTheme() public method

Method that tries to initialization the theme
public InitializeTheme ( ) : void
return void

MainPage() public method

Constructor that handles initialization of the page
public MainPage ( ) : System
return System

OnAppearing() protected method

Override of the OnAppearing event. If an item is Selected in the _list it is reset. Sets the content of the page here, because it might not have been properly initialized with colors if the user wasnt coupled If its the first time its called, it will send a ShowCross message to the viewmodel. Also sends an Update message to the viewmodel
protected OnAppearing ( ) : void
return void

OnBackButtonPressed() protected method

Override of the OnBackButtonPressed event
protected OnBackButtonPressed ( ) : bool
return bool

SetContent() public method

Method that creates the page content
public SetContent ( ) : View
return Xamarin.Forms.View

Property Details

List public_oe property

public ListView List
return ListView