Exemplo n.º 1
0
 private void Purchase2Grid_OnKeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Down)
     {
         var currentRowIndex = (_viewModel.SelectedPurchaseRow.PurchaseOrderHeaderList.IndexOf(_viewModel.SelectedPurchase2Row));
         if (currentRowIndex == (_viewModel.SelectedPurchaseRow.PurchaseOrderHeaderList.Count - 1))
         {
             if (_viewModel.SelectedMainRow.TblPlanType == 0)
             {
                 _viewModel.AddNewDetail2Row(true);
             }
         }
     }
     else if (e.Key == Key.Delete)
     {
     }
 }