static void Main(string[] args) { DanhSachChuyenBay cb = new DanhSachChuyenBay(); cb.Nhap(); Console.WriteLine(cb); cb.TimThongTinChuyenBay("DaLat", "DaNang", "Dalat"); //Console.WriteLine(cb); // cb.SapXepGiamTheoNguon(); //Console.WriteLine("\n"+cb); // Console.WriteLine("Danh sach chuyen bay Dalat" + cb.Vidu()); Console.ReadKey(); }
private DanhSachChuyenBay TimChuyenBayTheoNguon(string nguon) { DanhSachChuyenBay kq = new DanhSachChuyenBay(); for (int i = 0; i < length; i++) { if (a[i].nguon == nguon) { kq.Them(a[i]); } } return(kq); }