public void sort(LogExpEnum filters) { List <Passenger> firms = FirmCol.get_firms(); foreach (Passenger firm in firms) { bool sort = true; foreach (Filter exp_filter in filters.filters) { if (!(sort = exp_filter.check(firm))) { break; } } if (sort) { firm_manager.AddFirm(firm); } } }
public MainContr() { firm_manager = new FirmMngr(); FirmCol.AddPassFromFile(); }