C# Class Te.StahpIt.ViewModels.WasteViewModel

The WasteViewModel simply holds references to existing ViewModels that provide existing data. This data is recycled into the WasteViewModel View, because its sole purpose is to bring this other data together and perform some simple math.
Inheritance: BaseViewModel
Mostra file Open project: TechnikEmpire/StahpIt-WPF Class Usage Examples

Public Methods

Method Description
WasteViewModel ( SettingsViewModel settingsViewModel, DashboardViewModel dashboardViewModel ) : System

Constructs a new WasteViewModel instance.

Private Methods

Method Description
OnLinkedPropertiesChanged ( object sender, System e ) : void

Handler for whenever properties in other linked view models change. All we're really interested in doing here is re-raising the same events for arguments that we mirror within this view model. This makes it so that we don't need a model behind this view model, we simply repeat data that exists elsewhere.

Method Details

WasteViewModel() public method

Constructs a new WasteViewModel instance.
/// In the event that the arguments provided are null, will throw ArgumentException. ///
public WasteViewModel ( SettingsViewModel settingsViewModel, DashboardViewModel dashboardViewModel ) : System
settingsViewModel SettingsViewModel /// The SettingsViewModel from which to receive updated user input about waste calculations. ///
dashboardViewModel DashboardViewModel /// The m_dashboardViewModelViewModel from which to receive updated blocking statistics. ///
return System