예제 #1
0
        static public void add_avtosalon(string[] str_from_box)
        {
            List <Field> new_fields = FieldTypeCol.getValue();

            for (int i = 0; i < str_from_box.Count <string>(); ++i)
            {
                new_fields[i].set_value(str_from_box[i]);
            }

            Firm new_firm = new Firm();

            new_firm.Field = new_fields;
            FirmCol.add_avtosalon(new_firm);
        }
예제 #2
0
        public void sort(LogExpEnum filters)
        {
            List <Firm> firms = FirmCol.get_firms();

            foreach (Firm firm in firms)
            {
                bool sort = true;
                foreach (Filter exp_filter in filters.filters)
                {
                    if (!(sort = exp_filter.proverka(firm)))
                    {
                        break;
                    }
                }
                if (sort)
                {
                    firmManager.add_avtosalon(firm);
                }
            }
        }
예제 #3
0
 public MainContr()
 {
     Manager = new FirmMngr();
     FirmCol.addFile();
 }