private void loadData() { loadOneStringDictionary(cbRegion, "Region"); loadOneStringDictionary(cbStatusAfterDTP, "StatusAfterDTP"); loadOneStringDictionary(cbCurrentStatusAfterDTP, "CurrentStatusAfterDTP"); Culprits culpits = Culprits.getInstance(); cbCulprit.DataSource = culpits.ToDataTable(_dtp); cbCulprit.DisplayMember = "Название"; cbCulprit.ValueMember = "id"; fillFields(); }
internal override object[] getRow() { Regions regions = Regions.getInstance(); Culprits culpritList = Culprits.getInstance(); StatusAfterDTPs statusAfterDTP = StatusAfterDTPs.getInstance(); Driver driver = GetDriver(); if (driver == null) { driver = new Driver(); } return(new object[] { ID, Car.ID, Car.BBNumber, Car.Grz, Number, Date, regions.getItem(_idRegion), driver.GetName(NameType.Full), _dateCallInsure, GetCurrentStatusAfterDTP(), culpritList.getItem(_idCulprit), _sum, Comm, Facts, Damage, statusAfterDTP.getItem(_idStatusAfterDTP), NumberLoss }); }