Beispiel #1
0
 private void DgFabricInsepectionLines_OnLoadingRow(object sender, DataGridRowEventArgs e)
 {
     if (_viewModel != null)
     {
         var viewModel = DataContext as ReservationViewModel;
         if (viewModel != null && viewModel.OrderLineList.Count < viewModel.PageSize)
         {
             return;
         }
         if (viewModel != null && (viewModel.OrderLineList.Count - 2 < e.Row.GetIndex() && !viewModel.Loading && viewModel.OrderLineList.Count != viewModel.FullCount))
         {
             viewModel.GetOrderInfo();
         }
     }
     else
     {
         if (ViewModel.OrderLineList.Count < ViewModel.PageSize)
         {
             return;
         }
         if (ViewModel.OrderLineList.Count - 2 < e.Row.GetIndex() && !ViewModel.Loading && ViewModel.OrderLineList.Count != ViewModel.FullCount)
         {
             ViewModel.GetOrderInfo();
         }
     }
 }
Beispiel #2
0
        private void btnAddNewMainOrderDetails_Clicked(object sender, RoutedEventArgs e)
        {
            _viewModel.OrderLineList.Clear();
            _viewModel.GetOrderInfo();
            var childWindows = new FabricDefectsLineCreationChildWindow(_viewModel);

            childWindows.Show();
        }