コード例 #1
0
 public void ViewTableItems(TableDetail tableDetail)
 {
     SelectedOrder = null;
     _oldItem      = null;
     try
     {
         if (tableDetail.TableNo == "All")
         {
             OrderItemsList = new ObservableCollection <KOTProd>(DisplayList);
         }
         else
         {
             OrderItemsList = new ObservableCollection <KOTProd>(DisplayList.Where(x => x.TABLENO == tableDetail.TableNo));
         }
         OrderItemsList.ForEach(x => x.IsVisible = false);
     }catch (Exception ex)
     {
         DependencyService.Get <IMessage>().ShortAlert(ex.Message);
     }
 }
コード例 #2
0
 public void ViewItems(string ItemDesc)
 {
     SelectedOrder = null;
     _oldItem      = null;
     try
     {
         if (ItemDesc == "All")
         {
             OrderItemsList = new ObservableCollection <KOTProd>(DisplayList);
         }
         else
         {
             OrderItemsList = new ObservableCollection <KOTProd>(DisplayList.Where(x => x.ItemDesc == ItemDesc));
         }
         OrderItemsList.ForEach(x => x.IsVisible = false);
     }
     catch (Exception ex)
     {
         DependencyService.Get <IMessage>().ShortAlert(ex.Message);
     }
 }