C# Класс 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.
Наследование: BaseViewModel
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
WasteViewModel ( SettingsViewModel settingsViewModel, DashboardViewModel dashboardViewModel ) : System

Constructs a new WasteViewModel instance.

Приватные методы

Метод Описание
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.

Описание методов

WasteViewModel() публичный Метод

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. ///
Результат System