// Executes when the user navigates to this page. protected void OnNavigatedTo(NavigationEventArgs e) { vm = DataContext as ListInventoryViewModel; vm.LoadGenericInventoryList.Execute(null); }
public ReconcileGenerics() { InitializeComponent(); vm = DataContext as ListInventoryViewModel; }
/// <summary> /// Provides a deterministic way to create the ListInventoryViewModel property. /// </summary> public static void CreateListInventoryViewModel() { if (_ListInventoryViewModel == null) { _ListInventoryViewModel =new ListInventoryViewModel(); } }
void InventoryListing_Loaded(object sender, RoutedEventArgs e) { vm = DataContext as ListInventoryViewModel; vm.LoadInventoryList.Execute(null); }
/// <summary> /// Provides a deterministic way to delete the ListInventoryViewModel property. /// </summary> public static void ClearListInventoryViewModel() { _ListInventoryViewModel.Cleanup(); _ListInventoryViewModel = null; }