private void Updata() { Lots.Clear(); Bargaes.Clear(); Lots = DataBaseService.LoadLotsFromDataBase(); Bargaes = DataBaseService.LoatBargaesFromDataBase(); }
private Bargaining ChengeSelectedBarga(int id) { for (int i = 0; i < Bargaes.Count; i++) { if (Bargaes.ElementAt(i).IdLot == id) { return(Bargaes.ElementAt(i)); } } return(null); }