C# Class Btl.ViewModels.MainViewModel

This is the main view model for the main window. Normally this would just contain the other view models, but we are also interacting with the main window itself, so there is a little bit more code in here than usual: we are persisting the window location, and interacting with the taskbar.
Inheritance: ViewModelBase
Show file Open project: barrylapthorn/countdown_timer

Private Methods

Method Description
ConsumeMessage ( SimpleMessage message ) : void

Consume the SimpleMessage class and perform actions based on its content.

ConsumeTaskbarItemMessage ( TaskbarItemMessage message ) : void

Update the TaskbarItemInfo values with whatever is specified in the message.

ExecutePauseCommand ( ) : void
ExecutePlayCommand ( ) : void
ExecuteViewAboutCommand ( ) : void
ExecuteViewSettingsCommand ( ) : void
ExecuteViewTimerCommand ( ) : void
MainViewModel ( ) : System.Windows

Use a static constructor as it is the easiest way to handle any exceptions that might be thrown when creating the view models.

UpdatePropertiesFromSettings ( ) : void