private void showDatailRoute1(List <Detail> listDetail, string departure, string arrival, DateTime date) { seeRoute[] list = new seeRoute[listDetail.Count]; int count1 = 0; flowLayoutPanel1.Controls.Clear(); foreach (seeRoute i in list) { flowLayoutPanel1.Controls.Add(new seeRoute { id_vehicle = listDetail[count1].id_vehicle, Id_detRoute = listDetail[count1].id_detRoute, tenXe = listDetail[count1].name.ToString(), loaiXe = listDetail[count1].type.ToString(), diemDi = listDetail[count1].departure.ToString(), diemDen = listDetail[count1].arrival.ToString(), thoiGian = listDetail[count1].time_start.ToString(), gia = listDetail[count1].price.ToString() + "đ", gheTrong = listDetail[count1].empty_seat.ToString() + " ghế" + " trống" }); count1++; } }
public void showDetailRoute(string departure, string arrival, DateTime date) { List <Detail> listDetail = BLL_TKVX.Instance.getALLDetailSchedule_BLL(departure, arrival, date.Date); int count = listDetail.Count; seeRoute[] list = new seeRoute[count]; int count1 = 0; foreach (seeRoute i in list) { flowLayoutPanel1.Controls.Add(new seeRoute { id_vehicle = listDetail[count1].id_vehicle, Id_detRoute = listDetail[count1].id_detRoute, tenXe = listDetail[count1].name.ToString(), loaiXe = listDetail[count1].type.ToString(), diemDi = listDetail[count1].departure.ToString(), diemDen = listDetail[count1].arrival.ToString(), thoiGian = listDetail[count1].time_start.ToString(), gia = listDetail[count1].price.ToString() + "đ", gheTrong = listDetail[count1].empty_seat.ToString() + " ghế" + " trống" }); count1++; } }