private void Updata() { Lots.Clear(); Bargaes.Clear(); Lots = DataBaseService.LoadLotsFromDataBase(); Bargaes = DataBaseService.LoatBargaesFromDataBase(); }
public AdministrationViewModel() { try { Lots = DataBaseService.LoadLotsFromDataBase(); Users = DataBaseService.LoadUsersFromDataBase(); Bargaes = DataBaseService.LoatBargaesFromDataBase(); } catch (Exception exp) { MessageBox.Show(exp.Message); } }
public LotInfoViewModel() { Lots = DataBaseService.LoadLotsFromDataBase(); user = DataBaseService.GetUserInfo(currentUser.login); Bargaes = DataBaseService.LoatBargaesFromDataBase(); selectedBarga = new Bargaining(); summa = 0; TimeLeft = ""; Task.Factory.StartNew(() => { while (true) { Task.Delay(1000).Wait(); timer(); } }); }