예제 #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);
                }
            }
        }
예제 #2
0
 public MainContr()
 {
     firm_manager = new FirmMngr();
     FirmCol.AddPassFromFile();
 }