void InventoryAdjustmentsReport_Loaded(object sender, RoutedEventArgs e)
 {
     _vm = DataContext as ListIANViewModel;
     _vm.Id = "";
     string _current = NavigationService.Source.OriginalString.ParseQueryString("current");
     
     _current = PresentationUtility.ParseIdFromUrl(NavigationService.CurrentSource).ToString();
     if (!string.IsNullOrEmpty(_current))
     {
         _vm.Id = _current;
     }
     _vm.RunLoadIANs();
 }
Beispiel #2
0
 /// <summary>
 /// Provides a deterministic way to delete the ListIANViewModel property.
 /// </summary>
 public static void ClearListIANViewModel()
 {
     _ListIANViewModel.Cleanup();
     _ListIANViewModel = null;
 }
Beispiel #3
0
 /// <summary>
 /// Provides a deterministic way to create the ListIANViewModel property.
 /// </summary>
 public static void CreateListIANViewModel()
 {
     if (_ListIANViewModel == null)
     {
         _ListIANViewModel = new ListIANViewModel();
     }
 }
 void StockTakeReport_Loaded(object sender, RoutedEventArgs e)
 {
     _vm = this.DataContext as ListIANViewModel;
     _vm.LoadStockTakeReport();
 }