예제 #1
0
 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();
         }
     });
 }
예제 #2
0
 public AddLotViewModel()
 {
     selectedLot = new LotInfo();
     user        = DataBaseService.GetUserInfo(currentUser.login);
     Barga       = new Bargaining();
 }
 public ClientInfoViewModel()
 {
     selectedUser = DataBaseService.GetUserInfo(currentUser.login);
 }