C# Class Geowigo.ViewModels.GameHomeViewModel

Inheritance: BaseViewModel
Show file Open project: WFoundation/WF.Player.WinPhone

Public Properties

Property 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

Public Methods

Method Description
InitCollectionViewSourcesForTasks ( CollectionViewSource currrentTs, CollectionViewSource historyTs ) : void

Initializes filters for task collection view sources.

OnPageReady ( ) : void

Protected Methods

Method 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

Method 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 method

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

InitFromNavigation() protected method

protected InitFromNavigation ( NavigationInfo nav ) : void
nav NavigationInfo
return void

OnCoreGameStateChanged() protected method

protected OnCoreGameStateChanged ( WF oldState, WF newState ) : void
oldState WF
newState WF
return void

OnCorePropertyChanged() protected method

protected OnCorePropertyChanged ( string propName ) : void
propName string
return void

OnModelChanged() protected method

protected OnModelChanged ( Models newModel ) : void
newModel Models
return void

OnPageBackKeyPressOverride() protected method

protected OnPageBackKeyPressOverride ( System e ) : void
e System
return void

OnPageReady() public method

public OnPageReady ( ) : void
return void

Property Details

AreCurrentTasksVisibleProperty public static property

public static DependencyProperty,System.Windows AreCurrentTasksVisibleProperty
return System.Windows.DependencyProperty

AreHistoryTasksVisibleProperty public static property

public static DependencyProperty,System.Windows AreHistoryTasksVisibleProperty
return System.Windows.DependencyProperty

AreObjectsVisibleProperty public static property

public static DependencyProperty,System.Windows AreObjectsVisibleProperty
return System.Windows.DependencyProperty

AreZonesVisibleProperty public static property

public static DependencyProperty,System.Windows AreZonesVisibleProperty
return System.Windows.DependencyProperty

CartridgeFilenameKey public static property

public static string CartridgeFilenameKey
return string

CartridgeTagProperty public static property

public static DependencyProperty,System.Windows CartridgeTagProperty
return System.Windows.DependencyProperty

IsInventoryEmptyProperty public static property

public static DependencyProperty,System.Windows IsInventoryEmptyProperty
return System.Windows.DependencyProperty

IsTasksEmptyProperty public static property

public static DependencyProperty,System.Windows IsTasksEmptyProperty
return System.Windows.DependencyProperty

IsWorldEmptyProperty public static property

public static DependencyProperty,System.Windows IsWorldEmptyProperty
return System.Windows.DependencyProperty

PivotSelectedIndexProperty public static property

public static DependencyProperty,System.Windows PivotSelectedIndexProperty
return System.Windows.DependencyProperty

SavegameFilenameKey public static property

public static string SavegameFilenameKey
return string

SectionKey public static property

public static string SectionKey
return string

SectionValue_Inventory public static property

public static string SectionValue_Inventory
return string

SectionValue_Overview public static property

public static string SectionValue_Overview
return string

SectionValue_Tasks public static property

public static string SectionValue_Tasks
return string

SectionValue_World public static property

public static string SectionValue_World
return string