// Executes when the user navigates to this page.
 protected void OnNavigatedTo(NavigationEventArgs e)
 {
     vm = DataContext as ListInventoryViewModel;
     vm.LoadGenericInventoryList.Execute(null);
 }
Exemplo n.º 2
0
        public ReconcileGenerics()
        {
            InitializeComponent();
            vm = DataContext as ListInventoryViewModel;

        }
Exemplo n.º 3
0
 /// <summary>
 /// Provides a deterministic way to create the ListInventoryViewModel property.
 /// </summary>
 public static void CreateListInventoryViewModel()
 {
     if (_ListInventoryViewModel == null)
     {
         _ListInventoryViewModel =new ListInventoryViewModel();
     }
 }
Exemplo n.º 4
0
 void InventoryListing_Loaded(object sender, RoutedEventArgs e)
 {
     vm = DataContext as ListInventoryViewModel;
     vm.LoadInventoryList.Execute(null);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Provides a deterministic way to delete the ListInventoryViewModel property.
 /// </summary>
 public static void ClearListInventoryViewModel()
 {
     _ListInventoryViewModel.Cleanup();
     _ListInventoryViewModel = null;
 }