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
파일 보기 프로젝트 열기: TechnikEmpire/StahpIt-WPF 1 사용 예제들

공개 메소드들

메소드 설명
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