крупинааю 8 月之前
父節點
當前提交
e373b2650c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      AvaloniaApplicationTest/ViewModels/ShowTourPageViewModel.cs

+ 1 - 1
AvaloniaApplicationTest/ViewModels/ShowTourPageViewModel.cs

@@ -110,7 +110,7 @@ namespace AvaloniaApplicationTest.ViewModels
             int sum = 0;
             foreach (Tour tour in filtered_tours)
             {
-                sum = Convert.ToInt32(tour.Price*tour.TicketCount);
+                sum += Convert.ToInt32(tour.Price*tour.TicketCount);
             }
             AllPrice = sum;
             LBTours = filtered_tours;