Exemple #1
0
        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);
                }
            }
        }
Exemple #2
0
 public LogExpFactory()
 {
     filters = new LogExpEnum();
 }