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); }
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); } } }
public MainContr() { Manager = new FirmMngr(); FirmCol.addFile(); }