C# Class Geowigo.ViewModels.GameHomeViewModel

Inheritance: BaseViewModel
Afficher le fichier Open project: WFoundation/WF.Player.WinPhone

Méthodes publiques

Свойство Type Description
AreCurrentTasksVisibleProperty System.Windows.DependencyProperty
AreHistoryTasksVisibleProperty System.Windows.DependencyProperty
AreObjectsVisibleProperty System.Windows.DependencyProperty
AreZonesVisibleProperty System.Windows.DependencyProperty
CartridgeFilenameKey string
CartridgeTagProperty System.Windows.DependencyProperty
IsInventoryEmptyProperty System.Windows.DependencyProperty
IsTasksEmptyProperty System.Windows.DependencyProperty
IsWorldEmptyProperty System.Windows.DependencyProperty
PivotSelectedIndexProperty System.Windows.DependencyProperty
SavegameFilenameKey string
SectionKey string
SectionValue_Inventory string
SectionValue_Overview string
SectionValue_Tasks string
SectionValue_World string

Méthodes publiques

Méthode Description
InitCollectionViewSourcesForTasks ( CollectionViewSource currrentTs, CollectionViewSource historyTs ) : void

Initializes filters for task collection view sources.

OnPageReady ( ) : void

Méthodes protégées

Méthode Description
InitFromNavigation ( NavigationInfo nav ) : void
OnCoreGameStateChanged ( WF oldState, WF newState ) : void
OnCorePropertyChanged ( string propName ) : void
OnModelChanged ( Models newModel ) : void
OnPageBackKeyPressOverride ( System e ) : void

Private Methods

Méthode Description
FailInit ( AggregateException ex, CartridgeTag tag, bool isRestore = false ) : void

Displays a message when the async initialization failed, and returns back to the main menu.

OnCurrentTasksSourceFilter ( object sender, System.Windows.Data.FilterEventArgs e ) : void
OnHistoryTasksSourceFilter ( object sender, System.Windows.Data.FilterEventArgs e ) : void
QuickSaveGame ( ) : void

Makes a quick save game.

RefreshAppBar ( ) : void

Refreshes the application bar.

RefreshProgressBar ( WF gameState ) : void

Refreshes the progress bar depending on the game state.

RefreshVisibilities ( string propName = null ) : void

Refreshes the visibility of one or all wherigo object panels.

RunOrDeferIfNotReady ( System.Action action ) : void

Runs an action now or defers it if the page is not ready yet.

ShowDetails ( WF.Player.Core.UIObject t ) : void

Makes the app show the details of a thing.

ShowDeviceInfo ( ) : void

Makes the app show the device info page.

ShowMap ( ) : void

Makes the app show a map of the game zone.

ShowSection ( string section ) : void

Shows a particular section of the view.

ShowSectionFromTag ( FrameworkElement element ) : void

Shows a particular section of the view from the tag of a FrameworkElement.

StartSaveGame ( ) : void

Starts the process of saving a game.

Method Details

InitCollectionViewSourcesForTasks() public méthode

Initializes filters for task collection view sources.
public InitCollectionViewSourcesForTasks ( CollectionViewSource currrentTs, CollectionViewSource historyTs ) : void
currrentTs System.Windows.Data.CollectionViewSource
historyTs System.Windows.Data.CollectionViewSource
Résultat void

InitFromNavigation() protected méthode

protected InitFromNavigation ( NavigationInfo nav ) : void
nav NavigationInfo
Résultat void

OnCoreGameStateChanged() protected méthode

protected OnCoreGameStateChanged ( WF oldState, WF newState ) : void
oldState WF
newState WF
Résultat void

OnCorePropertyChanged() protected méthode

protected OnCorePropertyChanged ( string propName ) : void
propName string
Résultat void

OnModelChanged() protected méthode

protected OnModelChanged ( Models newModel ) : void
newModel Models
Résultat void

OnPageBackKeyPressOverride() protected méthode

protected OnPageBackKeyPressOverride ( System e ) : void
e System
Résultat void

OnPageReady() public méthode

public OnPageReady ( ) : void
Résultat void

Property Details

AreCurrentTasksVisibleProperty public_oe static_oe property

public static DependencyProperty,System.Windows AreCurrentTasksVisibleProperty
Résultat System.Windows.DependencyProperty

AreHistoryTasksVisibleProperty public_oe static_oe property

public static DependencyProperty,System.Windows AreHistoryTasksVisibleProperty
Résultat System.Windows.DependencyProperty

AreObjectsVisibleProperty public_oe static_oe property

public static DependencyProperty,System.Windows AreObjectsVisibleProperty
Résultat System.Windows.DependencyProperty

AreZonesVisibleProperty public_oe static_oe property

public static DependencyProperty,System.Windows AreZonesVisibleProperty
Résultat System.Windows.DependencyProperty

CartridgeFilenameKey public_oe static_oe property

public static string CartridgeFilenameKey
Résultat string

CartridgeTagProperty public_oe static_oe property

public static DependencyProperty,System.Windows CartridgeTagProperty
Résultat System.Windows.DependencyProperty

IsInventoryEmptyProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsInventoryEmptyProperty
Résultat System.Windows.DependencyProperty

IsTasksEmptyProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsTasksEmptyProperty
Résultat System.Windows.DependencyProperty

IsWorldEmptyProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsWorldEmptyProperty
Résultat System.Windows.DependencyProperty

PivotSelectedIndexProperty public_oe static_oe property

public static DependencyProperty,System.Windows PivotSelectedIndexProperty
Résultat System.Windows.DependencyProperty

SavegameFilenameKey public_oe static_oe property

public static string SavegameFilenameKey
Résultat string

SectionKey public_oe static_oe property

public static string SectionKey
Résultat string

SectionValue_Inventory public_oe static_oe property

public static string SectionValue_Inventory
Résultat string

SectionValue_Overview public_oe static_oe property

public static string SectionValue_Overview
Résultat string

SectionValue_Tasks public_oe static_oe property

public static string SectionValue_Tasks
Résultat string

SectionValue_World public_oe static_oe property

public static string SectionValue_World
Résultat string