C# Class Hanasu.App

Provides application-specific behavior to supplement the default Application class.
Inheritance: BaseCrystalApplication
显示文件 Open project: Amrykid/Hanasu

Public Properties

Property Type Description
AppFolder Windows.Storage.StorageFolder
HanasuAppSettings AppSettings
ptm Windows.Media.PlayTo.PlayToManager

Private Properties

Property Type Description
GetAppFolder System.Threading.Tasks.Task
HookOnMediaElement void
LoadSettings void
LoadStations System.Threading.Tasks.Task
OnSuspending void
OpenPrivacyPolicy void
RegisterBackgroundTask void
SaveSettings void
SetupSettingsCharm void

Public Methods

Method Description
App ( ) : Crystal.Core

Initializes the singleton application object. This is the first line of authored code executed, and as such is the logical equivalent of main() or WinMain().

App_CommandsRequested ( SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args ) : void
App_UnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void
MediaElement_CurrentStateChanged ( object sender, RoutedEventArgs e ) : void
PlayClickSong ( ) : System.Threading.Tasks.Task
PlaySound ( Uri name ) : System.Threading.Tasks.Task
me_MediaEnded ( object sender, RoutedEventArgs e ) : void
me_MediaFailed ( object sender, ExceptionRoutedEventArgs e ) : void

Protected Methods

Method Description
PostStartup ( ) : void
PostStartupNormalLaunch ( LaunchActivatedEventArgs args ) : void

Invoked when the application is launched normally by the end user. Other entry points will be used when the application is launched to open a specific file, to display search results, and so forth.

PostStartupSearchActivated ( SearchActivatedEventArgs args ) : void
PreShutdown ( ) : void
PreStartup ( ) : void

Private Methods

Method Description
GetAppFolder ( ) : System.Threading.Tasks.Task
HookOnMediaElement ( ) : void
LoadSettings ( ) : void
LoadStations ( ) : System.Threading.Tasks.Task
OnSuspending ( object sender, SuspendingEventArgs e ) : void

Invoked when application execution is being suspended. Application state is saved without knowing whether the application will be terminated or resumed with the contents of memory still intact.

OpenPrivacyPolicy ( IUICommand command ) : void
RegisterBackgroundTask ( ) : void
SaveSettings ( ) : void
SetupSettingsCharm ( ) : void

Method Details

App() public method

Initializes the singleton application object. This is the first line of authored code executed, and as such is the logical equivalent of main() or WinMain().
public App ( ) : Crystal.Core
return Crystal.Core

App_CommandsRequested() public method

public App_CommandsRequested ( SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args ) : void
sender Windows.UI.ApplicationSettings.SettingsPane
args Windows.UI.ApplicationSettings.SettingsPaneCommandsRequestedEventArgs
return void

App_UnhandledException() public method

public App_UnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void
sender object
e UnhandledExceptionEventArgs
return void

MediaElement_CurrentStateChanged() public method

public MediaElement_CurrentStateChanged ( object sender, RoutedEventArgs e ) : void
sender object
e Windows.UI.Xaml.RoutedEventArgs
return void

PlayClickSong() public method

public PlayClickSong ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

PlaySound() public method

public PlaySound ( Uri name ) : System.Threading.Tasks.Task
name System.Uri
return System.Threading.Tasks.Task

PostStartup() protected method

protected PostStartup ( ) : void
return void

PostStartupNormalLaunch() protected method

Invoked when the application is launched normally by the end user. Other entry points will be used when the application is launched to open a specific file, to display search results, and so forth.
protected PostStartupNormalLaunch ( LaunchActivatedEventArgs args ) : void
args Windows.ApplicationModel.Activation.LaunchActivatedEventArgs Details about the launch request and process.
return void

PostStartupSearchActivated() protected method

protected PostStartupSearchActivated ( SearchActivatedEventArgs args ) : void
args Windows.ApplicationModel.Activation.SearchActivatedEventArgs
return void

PreShutdown() protected method

protected PreShutdown ( ) : void
return void

PreStartup() protected method

protected PreStartup ( ) : void
return void

me_MediaEnded() public method

public me_MediaEnded ( object sender, RoutedEventArgs e ) : void
sender object
e Windows.UI.Xaml.RoutedEventArgs
return void

me_MediaFailed() public method

public me_MediaFailed ( object sender, ExceptionRoutedEventArgs e ) : void
sender object
e Windows.UI.Xaml.ExceptionRoutedEventArgs
return void

Property Details

AppFolder public_oe static_oe property

public static StorageFolder,Windows.Storage AppFolder
return Windows.Storage.StorageFolder

HanasuAppSettings public_oe static_oe property

public static AppSettings,Hanasu HanasuAppSettings
return AppSettings

ptm public_oe property

public Windows.Media.PlayTo.PlayToManager ptm
return Windows.Media.PlayTo.PlayToManager